httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <>
Subject AW: [users@httpd] Execution order of directives within Apache 2.4
Date Mon, 23 Feb 2015 10:05:33 GMT
Yes, you are completely right and all configurations, which are based on executions orders
are hackish and I don't try to implement such configurations. There just have been some internal
questions about the execution order of configurations inside apache and I was not fully aware
of and so I asked.

The information about the sections topic (,
helped me at that point. 

Thanks & cheers,

-----Urspr√ľngliche Nachricht-----
Von: Nick Kew [] 
Gesendet: Freitag, 20. Februar 2015 14:13
Betreff: Re: [users@httpd] Execution order of directives within Apache 2.4

On Fri, 20 Feb 2015 12:33:32 +0000
<> wrote:

> Hello everybody,
> I was searching for a description of the exection order of directives and configurations
within the apache and I wasn't able to find the documentation about that? E.g. I know that
ReverseProxy rules will be executed in the order from top down, also virtual hosts and filters,
but I wasn't able to find out what the execution order is if I have e.g. virtual hosts configured
and rewrite rules within the main configuration?
> Are there general rules, like the overall order inside the httpd.conf, or the execution
is based on the order the single corresponding modules are loaded?

If that kind of esoterica matters to you, it suggests you're
attempting something very hackish and likely to be hard to
maintain.  Best advice is don't.  Failing that, try it and see.

The specific question you put is described in mod_rewrite documentation
(and note that any use of mod_rewrite hints at the likelihood of a hack
that might easily have been necessary in the 1990s, but has long since
become redundant).  Rewrite directives at top level are indeed processed
early, before context-sensitive config.

Nick Kew

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message