Funny I am wrestling with this right now.

I am using a derivation of what I found here:

http://www.ntopsupport.com/faq.html

Here is my configuration and it seems pretty close, but not 100%:

ProxyPass /ntop http://localhost:8080
ProxyPassReverse /ntop http://localhost:8080

RewriteEngine On
RewriteLogLevel 2
RewriteLog logs/rewrite_log
RewriteCond %{REQUEST_URI} !^/$
RewriteCond %{REQUEST_URI} !^/home.html$
#RewriteCond %{REQUEST_URI} !^/ntop/
#RewriteRule ^/([^/]+\.[a-z]+)$ http://www.example.com:8080/$1[L,P]
##RewriteRule ^/([^/]+\.[a-z]+)$ http://www.example.com:8080/ntop/$1[L,P]
##RewriteRule ^/([^/]+\.[a-z]+)$ http://www.example.com:8080/$1[L,P]

RewriteCond %{HTTP_REFERER} www.example.com/ntop
RewriteCond %{REQUEST_URI} !^/ntop
RewriteRule ^/(.*)$ http://www.example.com/ntop/$1 [L,P]
# RewriteRule ^/([^/]+\.[a-z]+)$ http://www.example.com/$1 [L,P]
# RewriteRule ^/([^/]+\.[a-z]+)$ http://www.example.com:8080/$1[L,P]


On Mon, Apr 27, 2009 at 4:41 PM, Eduard VANKO <[email protected]> wrote:

> I have tried to proxy ntop through apache according to this link:
> http://www.ntop.org/trac/wiki/ntop
> I have slightly modified ntop.conf:
>
> -----------------------------------------------------------------------------------
> ProxyHTMLLogVerbose On
> LogLevel warn
> ProxyHTMLExtended On
>
> ProxyRequests Off
> <Proxy *>
> Order deny,allow
> Allow from all
> </Proxy>
>
> ProxyPass /private/ntop/  http://localhost:3000/
> ProxyPassReverse /private/ntop/  http://localhost:3000/
>
> <Location /private/ntop>
> SetOutputFilter  proxy-html
> ProxyHTMLURLMap  /      /private/ntop/
> ProxyHTMLURLMap /private/ntop/plugins/ntop/ /private/ntop/plugins/
> RequestHeader    unset  Accept-Encoding
> </Location>
>
> -----------------------------------------------------------------------------------
> But proxying is not working correctly - pie graphs are missing, after
> removing ProxyHTMLExtended directive, pie graphs are OK, but menu is not
> working. It seems to be a problem with proxying javascript...
> Any advice?
>
> _______________________________________________
> Ntop mailing list
> [email protected]
> http://listgateway.unipi.it/mailman/listinfo/ntop
>



-- 
===================================
John Jason Brzozowski
===================================
_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to