error page and internal command
Fernando Flórez
fernando at funciton.com
Fri Oct 9 21:20:29 MSD 2009
Not physically. The /404/ folder is mapped to a fastcgi process
(django url).
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