k
Size: a a a
KH
DM
proxy_read_timeout
на весь сервер поставить? то есть в глобальный конфиг?HF
AN
HF
AN
HF
access_log
can be used in the contexts http, server, location, if in location, and limit_except.default_server
and the other is an actual website. The idea is that when someone tries to access by IP address, the request will be processed by the default virtualhost.access_log
within a location block in my default virtualhost, not only the request isn't logged, but passes to the actual website virtualhost.access_log
is declared at the server
block instead, everything works as expected.AN
AN
HF
HF
server {
listen 80 default_server;
access_log /var/log/nginx/catchall.log custom;
location / {
return 404;
}
}
server {
listen 80 default_server;
location / {
access_log /var/log/nginx/catchall.log custom;
return 404;
}
}
AN
server {
listen 44480 default_server;
location / {
access_log /tmp/nginx_test/default-access.log main ;
return 404;
}
}
server {
listen 44480 ;
server_name lala ;
access_log /tmp/nginx_test/vhost-access.log main ;
location / {
return 200 "OK";
}
}
HF
AN
HF
AN
HF
HF
error_page
instructions.