Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: RewriteLog function not logging to file |
|
Author |
|
Mitch_H
Joined: 25 Feb 2009 Posts: 1 Location: United States
|
Posted: Wed 25 Feb '09 10:02 Post subject: RewriteLog function not logging to file |
|
|
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
|
|
Back to top |
|
|
|
|
|
|