On Thu, Sep 23, 2010 at 06:01:18AM -0400, Dmitry Veselov wrote:
> в общем задача следующая
> отдавать custom 404.html в следующих случаях:
> http://unknown_domain.com
> http://unknown_domain.com/some/some/
> http://my_known_domain.com/unknown_link/
> http://my_known_domain.com/unknown_link/unknown_link/
server {
server_name my_known_domain.com;
root /usr/share/nginx/html;
location / {
index index.html index.htm;
}
error_page 404 /404.html;
location = /404.html { }
}
server {
listen 80 default_server;
server_name "";
location / { return 404; }
root /usr/share/nginx/html;
error_page 404 /404.html;
location = /404.html { }
}
--
Игорь Сысоев
http://sysoev.ru
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru