Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 404 É ÓÌÜÛ
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@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|