Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


   


   


   















      :: nginx-ru
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

  • Follow-Ups:
  • References:

 




Copyright © Lexa Software, 1996-2009.