Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 404 É ÓÌÜÛ
[quote="Igor Sysoev"]
server {
listen 80 default_server;
server_name "";
location / { return 404; }
root /usr/share/nginx/html;
error_page 404 /404.html;
location = /404.html { }
}
[/quote]
[emerg]: "default_server" parameter can be specified for the default
"listen" directive only in /etc/nginx/conf.d/default.conf:2
configuration file /etc/nginx/nginx.conf test failed
ps: nginx version: nginx/0.7.67
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,133277,133298#msg-133298
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|