Home > OS >  For help, about the pseudo static configuration WordPress site
For help, about the pseudo static configuration WordPress site

Time:11-08

Now configure pseudo static and HTTPS
HTPPS configured
Pseudo static is now out of the question, where we look at the trouble is, the configuration file written right

 server {

Listen 443 SSL;
SSL on;
Ssl_certificate/nginx//XXX XXX. Pem;
Ssl_certificate_key/nginx//XXX XXX. Key;
Ssl_session_timeout 5 m;
Ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
Ssl_ciphers AESGCM: ALL:! DH:! EXPORT:! RC4: + HIGH:! MEDIUM:! LOW:! ANULL:! ENULL.
Ssl_prefer_server_ciphers on;


The location/{
Root/usr/share/nginx/HTML;
The index index. PHP index. HTML index. HTM;

If (f $request_filename/index. HTML) {
Rewrite (. *) $1/index. HTML break;
}
If (f $request_filename/index. PHP) {
Rewrite (. *) $1/index. PHP;
}
if (! - f $request_filename) {
Rewrite (. *)/index. PHP;
}
}


Error_page 504/50, 500, 502, 503 x. HTML;
Location=/50 x) HTML {
Root/usr/share/nginx/HTML;
}

The location ~ \. PHP ${
Root/usr/share/nginx/HTML;
Fastcgi_pass 127.0.0.1:9000;
Fastcgi_index index. PHP;
Fastcgi_param SCRIPT_FILENAME $$fastcgi_script_name document_root;
The include fastcgi_params;
}

}

Server
{
listen 80;
Server_name xxx.com www.xxx.com;
The return of 301 https://$host$request_uri;
}
  • Related