httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Fonseca - CGU <>
Subject [users@httpd] Rewrite Engine not working
Date Wed, 20 Sep 2006 13:30:33 GMT

I´m trying to get NTOP to work through an Apache Proxy, as described in 
HOW-TO from

In my case, if a request comes to http://sagittarius/ntop/, I want to 
proxy it to http://uranus:3000/

For this, I enabled mod_proxy and mod_proxy_http in httpd.conf. I also 
added the line:

ProxyPass /ntop/ http://uranus:3000/

The proxying part is fine, but because NTOP uses absolute URLs, some 
files don´t get proxied. The solution for this, as said in the how-to 
mentioned earlier,
is to use the rewrite engine. So, for this, I added the following lines 
on httpd.conf:

RewriteEngine On
RewriteLogLevel 9
RewriteLog /var/log/httpd/rewrite_log
RewriteCond %{HTTP_REFERER} sagittarius/ntop
RewriteCond %{REQUEST_URI} !^/ntop
RewriteCond %{REQUEST_URI} !^/error
RewriteRule ^/(.*)$ http://sagittarius/ntop/$1 [L,P]

According to the how-to, NTOP should work. Instead, it seems that the 
rewrite rule doesn´t get applied, the rewrite_log file is empty and NTOP 
doesn´t work

Any ideas?

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message