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/site.crt;
- ssl_certificate_key /etc/nginx/ssl/main.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/nightdestiny/;
- index index.php;
- access_log off;
- expires 30d;
- }
- location ~ /\.ht { deny all;
- }
- location ~ \.php$ {
- root /home/www;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME /home/www$fastcgi_script_name;
- include fastcgi_params;
- }
- location / {
- proxy_pass https://127.0.0.1:1443/;
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-for $remote_addr;
- proxy_set_header Host $host;
- proxy_connect_timeout 60;
- proxy_send_timeout 90;
- proxy_read_timeout 90;
- proxy_redirect off;
- proxy_set_header Connection close;
- proxy_pass_header Content-Type;
- proxy_pass_header Content-Disposition;
- proxy_pass_header Content-Length;
- }
Advertisement
Add Comment
Please, Sign In to add comment