Welcome! Log In Create A New Profile

Advanced

Re: error_page

October 20, 2010 01:38PM
On Wed, Oct 20, 2010 at 07:26:00PM +0200, Witold Filipczyk wrote:

> > With this configuration
> >
> > error_page 404 /404.html;
> > locaiton = /404.html {
> > root /path/to/page;
> > }
> >
> > you will get 404 code with /404.html body for this request:
> > http://blabla1.com/non-existant.html
> >
> > and 200 code with /404.html body for this request:
> > http://blabla1.com/404.html
>
> There is:
> server {
> server_name _;
> error_page 404 /404.html;
> location = /404.html {
> root /blabla;
> }
> }
>
> blabla1.com goes into _;

And where is question ?


--
Igor Sysoev
http://sysoev.ru/en/

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

error_page

witekfl Gazeta.pl 2262 October 20, 2010 11:12AM

Re: error_page

Igor Sysoev 1006 October 20, 2010 11:22AM

Re: error_page

Anonymous User 929 October 20, 2010 12:00PM

Re: error_page

Maxim Dounin 915 October 20, 2010 12:26PM

Re: error_page

Witold Filipczyk 898 October 20, 2010 01:08PM

Re: error_page

Maxim Dounin 924 October 20, 2010 01:36PM

Re: error_page

Igor Sysoev 1039 October 20, 2010 01:42PM

Re: error_page

Maxim Dounin 950 October 20, 2010 01:50PM

Re: error_page

Igor Sysoev 1083 October 20, 2010 01:58PM

Re: error_page

Igor Sysoev 1037 October 20, 2010 01:06PM

Re: error_page

Witold Filipczyk 928 October 20, 2010 01:28PM

Re: error_page

Igor Sysoev 1086 October 20, 2010 01:38PM

Re: error_page

Witold Filipczyk 1297 October 20, 2010 01:58PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 105
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