Java Mailing List Archive

http://www.apache-httpd.com/

Home » users.httpd »

[users@httpd] mod_proxy and preservehosts

Nino Saturnino Martinez Vazquez Wael

2008-06-21


Author LoginPost Reply
Hi

I am running "multiple" web sites on my server, and I need for the
backing application(tomcat) to be able to see which domain the user are
coming from. So I have the below configuration.

It seems that the first request goes well. But every subsequent request
gets the sub url appended so it looks like this
"www.mydomain.com/ZeuzWeb-0.1-SNAPSHOT/", however it does not seem like
it's my application since it still generates correct links :
"www.mydomain.com/?parameters". Im not sure it it can be done without
proxy preserve host? Once I turn it off again it works just fine.

Oh and btw I am using apache 2 on ubuntu(heron) server.




ProxyPreserveHost On
ProxyPass /images http://10.0.0.2:8180/ZeuzWeb-0.1-SNAPSHOT/images
  ProxyPass / http://10.0.0.2:8180/ZeuzWeb-0.1-SNAPSHOT/

  ProxyPassReverse / http://10.0.0.2:8180/ZeuzWeb-0.1-SNAPSHOT/
  <Proxy *>
  Order deny,allow
  Allow from all
  </Proxy>

--
-Wicket for love

Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


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

©2008 apache-httpd.com - Jax Systems, LLC, U.S.A.