Gregory, hi, I tested your config and it's working, but that's even more
complex
than just writing the error_page in each server{}. Thank you for you help
anyways :)
Francis, I filled a feature request (#307), let's see what happens
Regards!
--
alexandernst
On Fri, Feb 22, 2013 at 12:42:17PM +0100, Alexander Nestorov wrote:
Hi there,
> What I really ment to ask/say is: it will be really usefull to set
> some default rules that could be overriden later
> on each server{}.
That is already the case, within the limits of the nginx configuration
inherit
Thank you for the example config Gregory! :)
I'll try it (not sure if I'll be able to do it until monday) and I'll
say if everything works as expected.
Regards :)
--
alexandernst
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman
On 2/22/13 12:42 PM, Alexander Nestorov wrote:
Example:
It would be really usefull (in my particular case) to set error_page
to some absolute path so that all server{}
get error_page automatically. Then, if my domain 42 needs a custom
error_page I could just add the error_page
to that server{} a
Thank you both for the replies :)
I already thought about soft links and some hack with grep+sed, but
that's not I really wanted to ask.
What I really ment to ask/say is: it will be really usefull to set
some default rules that could be overriden later
on each server{}.
Example:
It would be rea
On Fri, 22 Feb 2013 09:32:33 +0100, Alexander Nestorov
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
On Fri, Feb 22, 2013 at 09:32:33AM +0100, Alexander Nestorov wrote:
Hi there,
> I'm trying to set a default error_page for my entire nginx server (as
> in for all vhosts)
Based on the way that nginx configuration inheritance works, that is
unlikely to be usefully possible at http{} level when yo