Help: mod_rewrite inherit question

Help: mod_rewrite inherit question

Post by Markus Lame » Wed, 18 Nov 1998 04:00:00




>Hello, friend:

Hi,

Quote:>I have alot of virtual servers hosted on my machine,
>and I'm trying to use mod_rewrite module.

>I wondering if there is a way to enable it on the whole site at a time.

depends ..

We have a server with xxxx of virtual servers on the machine but
we don't use <VirtualHost> directives for them. All is done with
mod_rewrite.

Cite from http://www.veryComputer.com/
"Note: When you specify an IP address in a NameVirtualHost directive
then requests to that IP address will only ever be served by matching
<VirtualHost>s. The "main server" will *never* be served from the
specified IP address. "

So if you use NameVirtualHost and only one IP for all servers,
there is no chance with using one global RewriteRule for
VirtualHosts.

Quote:>In reading Apache document, I got this,
>"Not that, by default, rewrite configurations are not inherited. This
>means that you need to have a `Rewri*gine on' directive for
>each virtual host you wish to use it in.".

>My question is: is there any way to inherit it and enable it once for all,
>instead of once for only a virtual host?

no problem if you only use  RewriteRules.

Quote:>I will apperaciate it very much if you could give me any suggestion!

>Thank you!

regards
    Markus
--


76139 Karlsruhe              /\ L I N K        http://www.veryComputer.com/

                      Internet. Mit Sicherheit!
-------------------------------------------------------------------
In a world without walls and fences - who needs Windows and Gates ?
 
 
 

Help: mod_rewrite inherit question

Post by Marc Slemk » Wed, 18 Nov 1998 04:00:00



Quote:>Cite from http://www.apache.org/docs/vhosts/name-based.html
>"Note: When you specify an IP address in a NameVirtualHost directive
>then requests to that IP address will only ever be served by matching
><VirtualHost>s. The "main server" will *never* be served from the
>specified IP address. "
>So if you use NameVirtualHost and only one IP for all servers,
>there is no chance with using one global RewriteRule for
>VirtualHosts.

Woah.  All that means is that the main server won't be used for serving
requests for that IP.  It doesn't suddenly stop the normal inheritence
of options from the main server into vhosts.