httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Helmut Schneider" <jumpe...@gmx.de>
Subject [users@httpd] Re: IfModule *rewrite*
Date Thu, 08 Dec 2011 10:56:39 GMT
Mark Montague wrote:

> On December 7, 2011 16:26 , "Helmut Schneider" <jumper99@gmx.de>
> wrote:
> > I put the following lines into my apache.conf (outside, before a
> > VHOST definition):
> > 
> > <IfModule mod_rewrite.c>
> >         RewriteEngine on
> >         RewriteLog /var/www/logs/rewrite.log
> >         RewriteLogLevel 2
> > </IfModule>
> > 
> > (I also tried mod_rewrite and rewrite_module)
> > 
> > Unfortunatly it seems it does not work.
> > 
> > But if I define the same lines within a VHOST it does work.
> 
> From
> https://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriteengine
> 
> "rewrite configurations are not inherited by virtual hosts. This
> means that you need to have a |RewriteEngine on| directive for each
> virtual host in which you wish to use rewrite rules."

Do I also need to configure

RewriteLog

within the VHOST?! Is that also a "Rewrite configuration"?! Because
only setting

RewriteEngine On

does not write a logfile...


---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message