error page and internal command

Maxim Dounin mdounin at mdounin.ru
Fri Oct 9 22:05:24 MSD 2009


Hello!

On Fri, Oct 09, 2009 at 12:20:29PM -0500, Fernando Flórez wrote:

> Not physically. The /404/ folder is mapped to a fastcgi process
> (django url).

Your config suggest that it's processed by nginx static module.  
If the dir or file doesn't exists - default 404 page is expected 
result.

Maxim Dounin

> 
> El 09/10/2009, a las 11:53, Igor Sysoev escribió:
> 
> >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 ?
> 
> 





More information about the nginx mailing list