Advertisement
siprof

example.com

Oct 1st, 2015
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.18 KB | None | 0 0
  1. server {
  2.  
  3. server_name example.com www.example.com;
  4. return 301 https://example.com$request_uri;
  5.  
  6. access_log off;
  7. error_log /var/log/nginx/example.com.error.log;
  8.  
  9. root /var/www/example.com/htdocs;
  10. index index.php index.html index.htm;
  11.  
  12. include common/php.conf;
  13. include common/wpcommon.conf;
  14. include common/locations.conf;
  15. include /var/www/example.com/htdocs/nginx.conf;
  16.  
  17. }
  18.  
  19. server {
  20.  
  21. listen 443 ssl spdy;
  22. server_name example.com www.example.com;
  23.  
  24. access_log off;
  25. error_log /var/log/nginx/example.com.error.log;
  26.  
  27. root /var/www/example.com/htdocs;
  28. index index.php index.html index.htm;
  29.  
  30. ssl on;
  31. ssl_certificate /etc/ssl/localcerts/example.com.pem;
  32. ssl_certificate_key /etc/ssl/localcerts/example.com.key;
  33. ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
  34. ssl_prefer_server_ciphers on;
  35. ssl_ciphers "AESGCM:!aNULL:!eNULL:!MEDIUM:!LOW:!MD5:!PSK:!RC4:!EXP:!EXPORT:!3DES:!DES:!SRP:!DSS:!SEED";
  36.  
  37. add_header X-Content-Type-Options nosniff;
  38.  
  39. include common/php.conf;
  40. include common/wpcommon.conf;
  41. include common/locations.conf;
  42. include /var/www/example.com/htdocs/nginx.conf;
  43.  
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement