Advertisement
Guest User

Untitled

a guest
Sep 1st, 2015
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. server {
  2. listen 443;
  3. listen [::]:443;
  4.  
  5. server_name realmofespionage.com;
  6. root /var/www/html;
  7. index index.php index.html index.htm;
  8.  
  9. location ~ \.php$ {
  10. fastcgi_split_path_info ^(.+\.php)(/.+)$;
  11. fastcgi_pass 127.0.0.1:2000;
  12. fastcgi_index index.php;
  13. fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
  14. include fastcgi_params;
  15. fastcgi_buffer_size 128k;
  16. fastcgi_buffers 4 256k;
  17. fastcgi_busy_buffers_size 256k;
  18. }
  19.  
  20. location / {
  21. rewrite ^(.*)$ /index.php?p=$1 last;
  22. break;
  23. }
  24.  
  25. location ~* ^/(.*)\.(ico|css|js|gif|png|jpg|bmp|JPG|jpeg)$ {
  26. root /var/www/html;
  27. rewrite ^/(.*)$ /$1 break;
  28. access_log off;
  29. expires max;
  30. }
  31.  
  32. ssl on;
  33. ssl_certificate /etc/nginx/ssl/ssl-unified.crt;
  34. ssl_certificate_key /etc/nginx/ssl/ssl.key;
  35.  
  36. ssl_session_timeout 5m;
  37.  
  38. ssl_protocols SSLv3 TLSv1;
  39. ssl_ciphers ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv3:+EXP;
  40. ssl_prefer_server_ciphers on;
  41.  
  42. client_max_body_size 15m;
  43.  
  44. access_log /var/log/nginx/access.log;
  45. error_log /var/log/nginx/error.log;
  46. }
  47.  
  48. server {
  49. listen 80;
  50. server_name realmofespionage.com;
  51. rewrite ^ https://www.realmofespionage.com$request_uri? permanent;
  52. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement