httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giovanni <g.vizz...@giur.uniroma3.it>
Subject Re: [users@httpd] ProxyPass and reverse
Date Thu, 25 May 2006 09:46:47 GMT
On 23:36, mercoledì 24 maggio 2006, Brian Rectanus wrote:
> What version of mod_proxy_html?

don't know...how to ask for version?

apache version i s 2.0.54 shipped with debian-stable (sarge)

>
> ProxyHTMLURLMap / /ntop/
>
> The above can replace all occurences of '/' with '/ntop/', which is
> what is happening (Logic is 'starts-with' in HTML links, but
> 'contains' in scripting events and embedded script and style
> sections).
>
> Try Regular expression mapping in mod_proxy_html 2.0:
>
> ProxyHTMLURLMap ^/ /ntop/ R

I tried, don't work. Cannot display pages.
When I come back to the original line ( ProxyHTMLURLMap / /ntop/ ) everything 
goes well.

So, I pointed better the problem whith your help:
everything from proxy -> localhost   works

EXCEPT this: on the main page there are css,script and so-on (classical 
pull-down menus that open when you pass over them whith mouse whithout 
clicking, in the upper part of the screen..)

This menu, that is present on all pages, IS THE PROBLEM: when you click a 
point referring to "/xxx.html is translated correctly by proxy to 
-> /ntop/xxx.html and works. 
BUT when you click (from this "main" menu) to a page which contains a subdir 
"/plugins/xxx", don't work. In fact tranlates to -->  /plugins/ntop/xxx and 
the server return error 404 cause don't find the page
This is what I get. 
Everything else works well.

Which can be the problem?



>
>
> Also, what are these supposed to be doing (they don't make sense):
>
> ProxyPassReverse /
> ProxyHTMLURLMap /ntop /ntop

You're right. In fact I deleted them.. no sense, only copied from web someone 
said " to give more stability to the whole process".. bah, I removed and 
everything works the same



Thanks much for your help again ! 


- Giovanni -



>
> -B
>
> On 5/24/06, Giovanni <g.vizzini@giur.uniroma3.it> wrote:
> > Hello, I used apache2 to reverse-proxy
> >
> > web proxy dir  /ntop/    -> to application localhost dir ->
> > http://localhost:3000/
> >
> > So when I do: http://pippo/ntop I see everything, graphics, numbers,
> > hosts graphics..
> > ROOT PATH are ok, I can see them:
> > es: /ntop/sortDataThpt.html
> >   /ntop/172.16.0.1.html
> >   /ntop/showPlugins.html?icmpWatch
> >
> > BUT SUBDIR NO !
> > es: /ntop/plugins/LastSeen
> > es: /ntop/plugins/icmpWatch
> >
> > Can't see them, i receive this error:
> >
> > #######
> > Error 404
> > The server cannot find the requested page (page expired or ntop
> > configuration ?).
> > Received request:
> >   "GET /plugins/ntop/icmpWatch HTTP/1.1"
> > #######
> >
> > What's wrong?
> > localhost:3000/plugins/icmpWatch  seem to translate
> > -> /ntop/plugins/ntop/icmpWatch
> >
> > Any idea?
> >
> >
> > This is my configuration
> >
> > #### NTOP (PROXY REVERSE) on virtual host ########
> >
> > ProxyHTMLLogVerbose On
> > LogLevel warn
> > ProxyHTMLExtended On
> >
> > ProxyRequests Off
> > <Proxy *>
> > Order deny,allow
> > Allow from all
> > </Proxy>
> >
> > ProxyPass /ntop/ http://localhost:3000/
> > ProxyPassReverse /ntop/ http://localhost:3000/
> >
> > <Location /ntop/>
> > ProxyPassReverse /
> > SetOutputFilter proxy-html
> > ProxyHTMLURLMap / /ntop/
> > ProxyHTMLURLMap /ntop /ntop
> > RequestHeader unset Accept-Encoding
> > </Location>
> >
> > #######################################
> >
> >
> > Thanks!!
> >
> >
> > Bye
> > - Giovanni -
> >
> > ---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP Server
> > Project. See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message