Welcome! Log In Create A New Profile

Advanced

Re: 404 и слэш

September 23, 2010 06:18AM
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
Subject Author Posted

404 и слэш

Dmitry Veselov September 23, 2010 05:13AM

Re: 404 и слэш

Alexander Kochetov September 23, 2010 05:34AM

Re: 404 и слэш

Dmitry Veselov September 23, 2010 05:36AM

Re: 404 и слэш

Dmitry Veselov September 23, 2010 05:39AM

Re: 404 и слэш

Dmitry Veselov September 23, 2010 06:01AM

Re: 404 и слэш

Alexander Kochetov September 23, 2010 06:16AM

Re: 404 и слэш

Igor Sysoev September 23, 2010 06:18AM

Re: 404 и слэш

Dmitry Veselov September 23, 2010 06:24AM

Re: 404 и слэш

Dmitry Veselov September 23, 2010 06:31AM

Re: 404 и слэш

Dmitry Veselov September 23, 2010 06:36AM

Re: 404 и слэш

Dmitry Veselov September 23, 2010 06:40AM

Re: 404 и слэш

Dmitry Veselov September 23, 2010 06:50AM

Re: 404 и слэш

Dmitry Veselov September 23, 2010 07:03AM

Re: 404 и слэш

Alexander Kochetov September 23, 2010 06:30AM

Re: 404 и слэш

Igor Sysoev September 23, 2010 06:36AM

Re: 404 и слэш

Igor Sysoev September 23, 2010 06:42AM

Re: 404 и слэш

Igor Sysoev September 23, 2010 07:28AM

Re: 404 и слэш

Dmitry Veselov September 23, 2010 11:16AM

Re: 404 и слэш

Дмитрий Андреев September 23, 2010 11:38AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 158
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready