nightmous

Untitled

Mar 5th, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. server {
  2. listen 80;
  3. server_name nightdestiny.ru;
  4. rewrite ^(.*) https://$server_name$1 permanent;
  5. }
  6.  
  7. server { listen 443; server_name nightdestiny.ru;
  8. ssl on;
  9. ssl_certificate /etc/nginx/ssl/site.crt;
  10. ssl_certificate_key /etc/nginx/ssl/main.key;
  11. ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
  12. ssl_ciphers RC4:HIGH:!aNULL:!MD5;
  13. ssl_prefer_server_ciphers on;
  14. keepalive_timeout 60;
  15. ssl_session_cache shared:SSL:10m;
  16. ssl_session_timeout 10m; access_log /var/log/nginx.access_log;
  17. location ~* \.(jpg|jpeg|gif|png|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|tar|wav|bmp|rtf|swf|ico|flv|txt|xml|docx|xlsx)$
  18. {
  19. root /var/www/html/nightdestiny/;
  20. index index.php;
  21. access_log off;
  22. expires 30d;
  23. }
  24. location ~ /\.ht { deny all;
  25. }
  26. location ~ \.php$ {
  27. root /home/www;
  28. fastcgi_pass 127.0.0.1:9000;
  29. fastcgi_index index.php;
  30. fastcgi_param SCRIPT_FILENAME /home/www$fastcgi_script_name;
  31. include fastcgi_params;
  32. }
  33. location / {
  34. proxy_pass https://127.0.0.1:1443/;
  35. proxy_set_header X-Real-IP $remote_addr;
  36. proxy_set_header X-Forwarded-for $remote_addr;
  37. proxy_set_header Host $host;
  38. proxy_connect_timeout 60;
  39. proxy_send_timeout 90;
  40. proxy_read_timeout 90;
  41. proxy_redirect off;
  42. proxy_set_header Connection close;
  43. proxy_pass_header Content-Type;
  44. proxy_pass_header Content-Disposition;
  45. proxy_pass_header Content-Length;
  46. }
Advertisement
Add Comment
Please, Sign In to add comment