Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- server_name new-parket.ru www.new-parket.ru;
- charset off;
- index index.html index.php;
- disable_symlinks if_not_owner from=$root_path;
- include /etc/nginx/vhosts-includes/*.conf;
- include /etc/nginx/vhosts-resources/new-parket.ru/*.conf;
- access_log /var/www/httpd-logs/new-parket.ru.access.log;
- error_log /var/www/httpd-logs/new-parket.ru.error.log notice;
- ssi on;
- set $root_path /var/www/parket-sites/data/www/new-parket.ru;
- root $root_path;
- location / {
- location ~ [^/]\.ph(p\d*|tml)$ {
- try_files /does_not_exists @fallback;
- }
- location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ {
- try_files $uri $uri/ @fallback;
- }
- location / {
- try_files /does_not_exists @fallback;
- }
- }
- location @fallback {
- proxy_pass http://127.0.0.1:8080;
- proxy_redirect http://127.0.0.1:8080 /;
- proxy_set_header Host $host;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-Proto $scheme;
- access_log on;
- access_log off;
- }
- listen 144.76.116.110:80;
- listen [2a01:4f8:192:716d::2]:80;
- return 301 https://$host$request_uri;
- }
- server {
- server_name new-parket.ru www.new-parket.ru;
- ssl on;
- ssl_certificate "/var/www/httpd-cert/parket-sites/new-parket.ru-2017.crtca";
- ssl_certificate_key "/var/www/httpd-cert/parket-sites/new-parket.ru-2017.key";
- ssl_ciphers EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH;
- ssl_prefer_server_ciphers on;
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- add_header Strict-Transport-Security "max-age=31536000;";
- charset off;
- index index.html index.php;
- disable_symlinks if_not_owner from=$root_path;
- include /etc/nginx/vhosts-includes/*.conf;
- include /etc/nginx/vhosts-resources/new-parket.ru/*.conf;
- access_log /var/www/httpd-logs/new-parket.ru.access.log;
- error_log /var/www/httpd-logs/new-parket.ru.error.log notice;
- ssi on;
- set $root_path /var/www/parket-sites/data/www/new-parket.ru;
- root $root_path;
- listen 144.76.116.110:443;
- listen [2a01:4f8:192:716d::2]:443;
- location / {
- location ~ [^/]\.ph(p\d*|tml)$ {
- try_files /does_not_exists @fallback;
- }
- location ~* ^.+\.(jpg|jpeg|gif|png|svg|js|css|mp3|ogg|mpe?g|avi|zip|gz|bz2?|rar|swf)$ {
- try_files $uri $uri/ @fallback;
- }
- location / {
- try_files /does_not_exists @fallback;
- }
- }
- location @fallback {
- proxy_pass http://127.0.0.1:8080;
- proxy_redirect http://127.0.0.1:8080 /;
- proxy_set_header Host $host;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header X-Forwarded-Proto $scheme;
- access_log off;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement