Re: [users@httpd] ProxyPass and reverse

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



What version of mod_proxy_html?

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


Also, what are these supposed to be doing (they don't make sense):

ProxyPassReverse /
ProxyHTMLURLMap /ntop /ntop

-B

On 5/24/06, Giovanni <g.vizzini@xxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux