On Fri, 22 Feb 2013 09:32:33 +0100, Alexander Nestorov
<[email protected]> wrote:
> I'm trying to set a default error_page for my entire nginx server (as
> http {
>     error_page 404 /var/www/default/404.html;
>     server {
>         root /var/www/mydomain.com/;
>     }
> }
> Is there any other way I could achieve what I'm trying?

What about soft linking it into wherever you want it?

# in the OS
  ln -s /var/www/default/404.html /var/www/mydomain.com/

#in Nginx config
  error_page 404 /404.html;

Regards,

M.

_______________________________________________
nginx mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx

Reply via email to