logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: RewriteLog function not logging to file
Author
Mitch_H



Joined: 25 Feb 2009
Posts: 1
Location: United States

PostPosted: Wed 25 Feb '09 10:02    Post subject: RewriteLog function not logging to file Reply with quote

I am trying to figure out why my rewrites aren't working, so I want to utilize the RewriteLog function.

I have the following code snippet in my /usr/local/apache/conf/httpd.conf file, but I can't seem to get anything to log to the file. I have also tried predefining the file /var/log/httpd/rewrite_log but that hasn't helped.

# CPANEL/WHM/WEBMAIL/WEBDISK PROXY SUBDOMAINS
<VirtualHost 70.xx.yy.1:80 70.xx.yy.2:80 70.xx.yy.3:80 70.xx.yy.5:80 70.xx.yy.6:80 *>
ServerName merlo.webhosting.com
ServerAlias cpanel.* whm.* webmail.* webdisk.*
DocumentRoot /usr/local/apache/htdocs
ServerAdmin mitch.vvvvvv@xxxxx.com
RewriteEngine On
RewriteLog "/var/log/httpd/rewrite_log"
RewriteLogLevel 3
RewriteCond %{HTTP_HOST} ^cpanel\.
RewriteRule ^/(.*) http://127.0.0.1:2082/$1 [P]
RewriteCond %{HTTP_HOST} ^webmail\.
RewriteRule ^/(.*) http://127.0.0.1:2095/$1 [P]
RewriteCond %{HTTP_HOST} ^whm\.
RewriteRule ^/(.*) http://127.0.0.1:2086/$1 [P]
RewriteCond %{HTTP_HOST} ^webdisk\.
RewriteRule ^/(.*) http://127.0.0.1:2077/$1 [P]
UseCanonicalName Off
</VirtualHost>

This is on a dedicated server that is running cPanel. Any insight about this would be greatly appreciated.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7407
Location: EU, Germany, Next to Hamburg

PostPosted: Thu 09 Apr '09 17:34    Post subject: Reply with quote

You need to set the RewriteLogLevel
Please see http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriteloglevel
Back to top


Reply to topic   Topic: RewriteLog function not logging to file View previous topic :: View next topic
Post new topic   Forum Index -> Apache