nightmous

Untitled

Mar 5th, 2015
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 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 {
  8. listen 443;
  9. server_name nightdestiny.ru;
  10. ssl on;
  11. ssl_certificate /etc/nginx/ssl/nightdestiny.ru.crt;
  12. ssl_certificate_key /etc/nginx/ssl/nightdestiny.key;
  13. ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
  14. ssl_ciphers RC4:HIGH:!aNULL:!MD5;
  15. ssl_prefer_server_ciphers on;
  16. keepalive_timeout 60;
  17. ssl_session_cache shared:SSL:10m;
  18. ssl_session_timeout 10m;
  19. access_log /var/log/nginx.access_log;
  20. 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)$ {
  21. root /var/www/html/perenos/;
  22. index index.html index.php;
  23. access_log off;
  24. expires 30d;
  25. }
  26. location ~ /\.ht {
  27. deny all;
  28. }
  29. location / {
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment