John Jason Brzozowski wrote:
> 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 
> <http://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] 
> <mailto:[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] <mailto:[email protected]>
>     http://listgateway.unipi.it/mailman/listinfo/ntop
> 
> 
> 
> 
> -- 
> ===================================
> John Jason Brzozowski
> ===================================
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Ntop mailing list
> [email protected]
> http://listgateway.unipi.it/mailman/listinfo/ntop
Hello,

I am using:

<Proxy *>
       Allow from all
</Proxy>

<Directory "/usr/local/AI/share/apache/htdocs/ntop">
    AllowOverride All
</Directory>
ProxyRequests Off

   ProxyPass /ntop/ http://localhost:3000/
   ProxyPassReverse /ntop/ http://localhost:3000/
   <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteLogLevel 0
    RewriteLog logs/rewrite_log
    RewriteCond %{REQUEST_URI} !^/$
    RewriteCond %{REQUEST_URI} !^/ntop/
    RewriteCond %{REQUEST_URI} !^/foxgui
    RewriteCond %{REQUEST_URI} !^/foxcons
    RewriteCond %{REQUEST_URI} !^/cgi-bin
    RewriteCond %{REQUEST_URI} !^/favicon.ico
    RewriteCond %{REQUEST_URI} !^/index.php3
    RewriteCond %{REQUEST_URI} !^/index.php
    RewriteCond %{REQUEST_URI} !^/scripts
    RewriteCond %{REQUEST_URI} !^/test.php
    RewriteCond %{REQUEST_URI} !^/debug.php
    RewriteCond %{REQUEST_URI} !^/index.html
    RewriteCond %{REQUEST_URI} !^/php.cgi
    RewriteCond %{REQUEST_URI} !^/styles
    RewriteRule ^/(.*)$ http://localhost:3000/$1 [L,P,NE]
   </IfModule>

which seems to work pretty well.
with modules:
mod_proxy
mod_proxy_http

_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to