ПА
Size: a a a
ПА
ПА
ПА
AY
AN
AB
СЛ
AV
СЛ
worker_connections 1024;
}
http {
access_log /dev/stdout;
server {
listen 80;
server_name example.com;
client_max_body_size 1m;
proxy_read_timeout 60s;
include /etc/nginx/conf.d/*.conf;
location / {
proxy_pass http://web/;
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/.htpasswd;
proxy_set_header X-Forwarded-Host $host;
# Do not pass Authorization header to destination
proxy_set_header Authorization "";
}
}
server {
listen 8090;
location /nginx_status {
stub_status on;
access_log off;
}
server {
listen 81;
server_name example.com;
client_max_body_size 1m;
proxy_read_timeout 60s;
include /etc/nginx/conf.d/*.conf;
location / {
proxy_pass http://web/;
auth_basic "Restricted";
auth_basic_user_file /etc/nginx/.htpasswd;
proxy_set_header X-Forwarded-Host $host;
# Do not pass Authorization header to destination
proxy_set_header Authorization "";
}
}
}
⠀
C
k
k