error page and internal command
Igor Sysoev
is at rambler-co.ru
Fri Oct 9 20:53:22 MSD 2009
On Fri, Oct 09, 2009 at 10:05:36AM -0500, Fernando Flórez wrote:
> It is.
>
> server {
> server_name mydomain.com;
>
> access_log /path/to/logs/access.log;
> error_log /path/to/logs/error.log;
>
> root /path/to/website/htdocs;
> index index.html;
>
> error_page 403 404 /404/;
> error_page 502 503 504 /500/;
>
> location = /404/ { internal; }
> location = /500/ { internal; }
> }
Does /path/to/website/htdocs/404/index.html exist ?
> Thanks,
>
> El 09/10/2009, a las 01:17, Igor Sysoev escribió:
>
> > On Thu, Oct 08, 2009 at 05:56:56PM -0500, Fernando Flórez wrote:
> >
> >> Hello,
> >>
> >> I'm currently running nginx-0.7.62.
> >>
> >> My conf goes like:
> >>
> >> error_page 404 /404/
> >> error_page 500 /500/
> >>
> >> location = /404/ { internal; }
> >> location = /500/ { internal; }
> >>
> >> It works fine but if i visit mydomain.com/404/ i get the default
> >> nginx
> >> 404 page instead of my custom one. Same thing with mydomain.com/
> >> 500/ .
> >> I get the default nginx 404 page instead of my custom one.
> >>
> >> Am i missing smth?
> >
> > Where are these
> >
> > error_page 404 /404/;
> > error_page 500 /500/;
> >
> > directives set ? They should be set on server level.
> >
> >
> > --
> > Igor Sysoev
> > http://sysoev.ru/en/
> >
>
--
Igor Sysoev
http://sysoev.ru/en/
More information about the nginx
mailing list