Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- server_name example.com www.example.com;
- return 301 https://example.com$request_uri;
- access_log off;
- error_log /var/log/nginx/example.com.error.log;
- root /var/www/example.com/htdocs;
- index index.php index.html index.htm;
- include common/php.conf;
- include common/wpcommon.conf;
- include common/locations.conf;
- include /var/www/example.com/htdocs/nginx.conf;
- }
- server {
- listen 443 ssl spdy;
- server_name example.com www.example.com;
- access_log off;
- error_log /var/log/nginx/example.com.error.log;
- root /var/www/example.com/htdocs;
- index index.php index.html index.htm;
- ssl on;
- ssl_certificate /etc/ssl/localcerts/example.com.pem;
- ssl_certificate_key /etc/ssl/localcerts/example.com.key;
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- ssl_prefer_server_ciphers on;
- ssl_ciphers "AESGCM:!aNULL:!eNULL:!MEDIUM:!LOW:!MD5:!PSK:!RC4:!EXP:!EXPORT:!3DES:!DES:!SRP:!DSS:!SEED";
- add_header X-Content-Type-Options nosniff;
- include common/php.conf;
- include common/wpcommon.conf;
- include common/locations.conf;
- include /var/www/example.com/htdocs/nginx.conf;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement