Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Rewritelog on apache 2.2.x

 
   Web Hosting Problem Solving Community! (Home) -> Apache RSS
Next:  Authentication via NTLM instead of Kerberos  
Author Message
Luuk

External


Since: Feb 09, 2008
Posts: 9



(Msg. 1) Posted: Wed Feb 13, 2008 9:05 am
Post subject: Rewritelog on apache 2.2.x
Archived from groups: alt>apache>configuration (more info?)

i must be doing something wrong Wink

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 Wink

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

 >> Stay informed about: Rewritelog on apache 2.2.x 
Back to top
Login to vote
Luuk

External


Since: Feb 09, 2008
Posts: 9



(Msg. 2) Posted: Thu Feb 14, 2008 10:12 am
Post subject: Re: Rewritelog on apache 2.2.x [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Luuk schreef:
> i must be doing something wrong Wink
>
> 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 Wink
>
> 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

 >> Stay informed about: Rewritelog on apache 2.2.x 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
rewritelog empty (Apache/1.3.29 @ linux 2.4.24) - Hello. I'm running numerious apache's of different versions and platforms, and this is first time I meet such a strange problem: rewrite log seems to be empty all the time (though mod_rewrite is being used widely). What I used: RewriteLog..

No page with rewritelog??? - I am running the Apache that comes with MSAS under Windoze XP. Whenever I try to switch on the ReWriteLog it tells me that pages cannot be displayed. Any ideas what I'm doing wrong? Here is my .htaccess file: Options +FollowSymLinks RewriteEngine on...

Subversion LDAP config Apache 2 vs Apache 2.2 - Hello! I just spent about 6 hours solving a configuration problem under Apache 2.2 and wanted to record the solution for the benefit of the hive mind. This is the error I saw in my Apache log: [LDAP: ldap_simple_bind_s() failed][Can't contact LDAP..

Apache 2 + PHP - Hello, are there still any issues about using Apache 2 with PHP? Is there a compatibility list somewhere around? Thanks, Florian -- Abkürzung unbekannt? ++ http://www.xgm.de +++

Apache::ASP - Has anybody used apache::ASP? On what platforms is it implemented? Is it working with COM components?
   Web Hosting Problem Solving Community! (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]