On Fri, May 01, 2009 at 10:15:44AM +0200, Joe Bofh wrote:
> Igor,
>
> While I have your attention, is there a better way to write status
> blocks than the following? I figure this would be useful information for
> everyone.
>
> error_page 500 502 503 504 /500.html;
> location = /500.html {
> expires 5d;
> root /var/www/crm;
> }
>
> error_page 404 /404/index.php;
> location = /404/index.php {
> expires 5d;
> root /var/www/crm;
> }
1) "expires" works only for 200, 204, 301, 302, and 304 responses.
2) /404/index.php will be handled as static file.
3) "root" may be set on server level, if it's common for server.
--
Igor Sysoev
http://sysoev.ru/en/