add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";
access_log /var/log/nginx/ms_access.log main;
error_log /var/log/nginx/ms_error.log warn;
root /home/bitrix/ext_www/ms.stulych.ru/public;
index index.php;
charset utf-8;
server_name_in_redirect off;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
error_page 404 /index.php;
location ~ \.php$ {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host:80;
proxy_pass http://127.0.0.1:8887;
set $imcontenttype "text/html; charset=utf-8";
set $docroot "/home/bitrix/ext_www/ms.stulych.ru/public";
proxy_ignore_client_abort off;
}
location ~ /\.(?!well-known).* {
deny all;
}
}
тут порт 80 описан)
Обсуждают сегодня