|
|
|
|
||||||
| alt.apache.configuration Apache web server configuration issues. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
i must be doing something wrong ;-)
in httpd.conf i added: RewriteLog "/var/log/apache2/rewrite.log" RewriteLogLevel 9 In my virtualhost config file i added: # http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html RewriteEngine On RewriteBase / RewriteRule ^test\.html$ index.html So, basically rewriting requests for 'test.html' to 'index.html' ( i have to start somewhere ;-) When i restart apache, and try to test the above, the rewrite.log file stays empty Which step did i miss to get this logging active? The rewrite part seems to work as expected. -- Luuk |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
Luuk schreef:
> i must be doing something wrong ;-) > > in httpd.conf i added: > RewriteLog "/var/log/apache2/rewrite.log" > RewriteLogLevel 9 > > In my virtualhost config file i added: > # http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html > RewriteEngine On > RewriteBase / > RewriteRule ^test\.html$ index.html > > So, basically rewriting requests for 'test.html' to 'index.html' > ( i have to start somewhere ;-) > > When i restart apache, and try to test the above, the rewrite.log file > stays empty > > Which step did i miss to get this logging active? > The rewrite part seems to work as expected. > > just found the answer on #apache (irc.freenode.net) the two lines i did put in my httpd.conf should be in my vhost config file, but not in the Directory section of it, so somewhere below ServerName -- Luuk |
|
![]() |
| Outils de la discussion | |
|
|