Re: 404 и слэш
Igor Sysoev
igor на sysoev.ru
Чт Сен 23 14:34:51 MSD 2010
On Thu, Sep 23, 2010 at 06:31:43AM -0400, Dmitry Veselov wrote:
> [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
listen 80 default;
--
Игорь Сысоев
http://sysoev.ru
Подробная информация о списке рассылки nginx-ru