Sent: Monday, March 21, 2005 6:17 AM
To: [email protected]
Subject: RE: [Ntop] The ReWriteEngine
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of DUANE, Andrew
Sent: 21 March 2005 10:59
To: [email protected]
Subject: [Ntop] The ReWriteEngineHi All,
I wonder if anyone could help me with some trouble I'm having getting the rewrite engine to properly allow access to NTOP from the outside world.
I have read the FAQ and created a new VirtualHost on my web server as such:
<VirtualHost *:80>
ServerAdmin [EMAIL PROTECTED]
VirtualDocumentRoot /var/www/html
ServerName www.myweb.com
ErrorLog logs/www.myweb.com-error_log
CustomLog logs/www.myweb.com-access_log common
ProxyRequests Off
ProxyPass /ntop/ http://www.myweb.com:15123/
RewriteEngine On
RewriteLog "/tmp/rewrite.log"
RewriteLogLevel 9
RewriteCond %{HTTP_REFERER} myweb.com/ntop
RewriteCond %{REQUEST_URI} !^/ntop
RewriteRule ^/(.*)$ http://www.myweb.com/ntop/$1 [L,P]
</VirtualHost>Now if I got to http://www.myweb.com/ntop/ I do get back the ntop front page, but some of the relative links don't work like the orange NTOP logo in the top left. Also if I try to open say "All Protocols" -> "Traffic" I get The requested URL /sortDataProtos.html was not found on this server
So it looks like the rewrite engine is not formating the URL correctly. So I looked in my log and here is what im getting:
92.33.25.127 - - [21/Mar/2005:10:51:58 +0000] [92.33.94.73/sid#8892f10][rid#8a25e30/initial] (2) init rewrite engine with requested uri /_vti_bin/_vti_aut/fp30reg.dll
92.33.25.127 - - [21/Mar/2005:10:51:58 +0000] [92.33.94.73/sid#8892f10][rid#8a25e30/initial] (3) applying pattern '^/(.*)$' to uri '/_vti_bin/_vti_aut/fp30reg.dll'
92.33.25.127 - - [21/Mar/2005:10:51:58 +0000] [92.33.94.73/sid#8892f10][rid#8a25e30/initial] (4) RewriteCond: input='' pattern='duaneville.com/ntop' => not-matched
92.33.25.127 - - [21/Mar/2005:10:51:58 +0000] [92.33.94.73/sid#8892f10][rid#8a25e30/initial] (1) pass through /_vti_bin/_vti_aut/fp30reg.dll
183.36.70.207 - - [21/Mar/2005:10:53:13 +0000] [www.myweb.com/sid#8892f10][rid#8a25e30/initial] (2) init rewrite engine with requested uri /ntop_logo.gif
183.36.70.207 - - [21/Mar/2005:10:53:13 +0000] [www.myweb.com/sid#8892f10][rid#8a25e30/initial] (3) applying pattern '^/(.*)$' to uri '/ntop_logo.gif'
183.36.70.207 - - [21/Mar/2005:10:53:13 +0000] [www.myweb.com/sid#8892f10][rid#8a25e30/initial] (4) RewriteCond: input='http://www.duaneville.com/ntop/trafficStats.html' pattern='duaneville.com/ntop' => matched
183.36.70.207 - - [21/Mar/2005:10:53:13 +0000] [www.myweb.com/sid#8892f10][rid#8a25e30/initial] (4) RewriteCond: input='/ntop_logo.gif' pattern='!^/ntop' => not-matched
183.36.70.207 - - [21/Mar/2005:10:53:13 +0000] [www.myweb.com/sid#8892f10][rid#8a25e30/initial] (1) pass through /ntop_logo.gif
183.36.70.207 - - [21/Mar/2005:10:53:15 +0000] [www.myweb.com/sid#8892f10][rid#8a23e28/initial] (2) init rewrite engine with requested uri /sortDataProtos.html
183.36.70.207 - - [21/Mar/2005:10:53:15 +0000] [www.myweb.com/sid#8892f10][rid#8a23e28/initial] (3) applying pattern '^/(.*)$' to uri '/sortDataProtos.html'
183.36.70.207 - - [21/Mar/2005:10:53:15 +0000] [www.myweb.com/sid#8892f10][rid#8a23e28/initial] (4) RewriteCond: input='' pattern='duaneville.com/ntop' => not-matched
183.36.70.207 - - [21/Mar/2005:10:53:15 +0000] [www.myweb.com/sid#8892f10][rid#8a23e28/initial] (1) pass through /sortDataProtos.html
183.36.70.207 - - [21/Mar/2005:10:53:17 +0000] [www.myweb.com/sid#8892f10][rid#8a1fe18/initial] (2) init rewrite engine with requested uri /ntop_logo.gif
183.36.70.207 - - [21/Mar/2005:10:53:17 +0000] [www.myweb.com/sid#8892f10][rid#8a1fe18/initial] (3) applying pattern '^/(.*)$' to uri '/ntop_logo.gif'
183.36.70.207 - - [21/Mar/2005:10:53:17 +0000] [www.myweb.com/sid#8892f10][rid#8a1fe18/initial] (4) RewriteCond: input='http://www.duaneville.com/ntop/trafficStats.html' pattern='duaneville.com/ntop' => matched
183.36.70.207 - - [21/Mar/2005:10:53:17 +0000] [www.myweb.com/sid#8892f10][rid#8a1fe18/initial] (4) RewriteCond: input='/ntop_logo.gif' pattern='!^/ntop' => not-matched
183.36.70.207 - - [21/Mar/2005:10:53:17 +0000] [www.myweb.com/sid#8892f10][rid#8a1fe18/initial] (1) pass through /ntop_logo.gif
Any ideas?
Cheers
Drew
********************************************************************
Important.
Confidentiality: This communication is intended for the above-named
person and may be confidential and/or legally privileged.
Any opinions expressed in this communication are not necessarily
those of the company. If it has come to you in error you must
take no action based on it, nor must you copy or show it to anyone;
please delete/destroy and inform the sender immediately.
Monitoring/Viruses.
Orange may monitor all incoming and outgoing emails in line with
current legislation. Although we have taken steps to ensure that
this email and attachments are free from any virus, we advise that
in keeping with good computing practice the recipient should ensure
they are actually virus free.
Orange PCS Limited is a subsidiary of Orange SA and is registered
in England No 2178917, with its address at St James Court,
Great Park Road, Almondsbury Park, Bradley Stoke, Bristol BS32 4QJ.
********************************************************************
********************************************************************
Important.
Confidentiality: This communication is intended for the above-named
person and may be confidential and/or legally privileged.
Any opinions expressed in this communication are not necessarily
those of the company. If it has come to you in error you must
take no action based on it, nor must you copy or show it to anyone;
please delete/destroy and inform the sender immediately.
Monitoring/Viruses.
Orange may monitor all incoming and outgoing emails in line with
current legislation. Although we have taken steps to ensure that
this email and attachments are free from any virus, we advise that
in keeping with good computing practice the recipient should ensure
they are actually virus free.
Orange PCS Limited is a subsidiary of Orange SA and is registered
in England No 2178917, with its address at St James Court,
Great Park Road, Almondsbury Park, Bradley Stoke, Bristol BS32 4QJ.
********************************************************************
_______________________________________________ Ntop mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop
