Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name nightdestiny.ru;
- rewrite ^(.*) https://$server_name$1 permanent;
- }
- server {
- listen 443;
- server_name nightdestiny.ru;
- ssl on;
- ssl_certificate /etc/nginx/ssl/nightdestiny.ru.crt;
- ssl_certificate_key /etc/nginx/ssl/nightdestiny.key;
- ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
- ssl_ciphers RC4:HIGH:!aNULL:!MD5;
- ssl_prefer_server_ciphers on;
- keepalive_timeout 60;
- ssl_session_cache shared:SSL:10m;
- ssl_session_timeout 10m;
- access_log /var/log/nginx.access_log;
- 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)$ {
- root /var/www/html/perenos/;
- index index.html index.php;
- access_log off;
- expires 30d;
- }
- location ~ /\.ht {
- deny all;
- }
- location / {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment