httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Smith" <ke...@netsmith.ltd.uk>
Subject Re: RewriteEngine
Date Thu, 25 Apr 2002 09:23:37 GMT
Hi Owen,

Nope, you've answered my question perfectly... sorry for the vagueness of my
question.

Many thanks,

Kevin Smith
----- Original Message -----
From: "Owen Boyle" <obo@bourse.ch>
To: <users@httpd.apache.org>
Sent: Thursday, April 25, 2002 9:49 AM
Subject: Re: RewriteEngine


> > Kevin Smith wrote:
> >
> > Hi All,
> >
> > Am I correct in thinking that when you turn on RewriteEngine On that
> > when you create a RewriteRule it will only work in a VirtualHost if
> > you have them setup?
>
> The important line to look at on the doc-page is "Context:". This tells
> you at what level the directive can operate. If you check the docs for
> all the Rewrite directives, you will see that they have Context =
> "server config, virtual host, directory, .htaccess". This means that
> they can be used at any level in the configuration of apache.
>
> The inheritance rules dictate that directives which are applied to a
> wider context are inherited by any subordinate context. So, for
> instance, if you define a RewriteRule at the server-config level, it
> will apply also in all VirtualHosts. If you define a rule in a VH, it
> will apply in any <Directory> containers inside that VH and so on.
>
> The corollary is that directives can never apply to a context which is
> wider than where they are defined - so if you define a rule in a
> <Directory> container, it will not apply to other directories in the
> same VH or to the server as a whole...
>
> Having explained all that, does this answer your question? Your question
> is not entirely clear - I'm not sure if you are asking whether you NEED
> VHs in order to use Rewrite (you don't - Rewrite rules can work at
> server-config level) or if you are asking whether RewriteRules inside a
> VH will be confined to that VH (they will) or what...
>
> Rgds,
>
> Owen Boyle.
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message