Apache mod_proxy parameters
Posted
by
mike
on Server Fault
See other posts from Server Fault
or by mike
Published on 2010-10-27T18:47:16Z
Indexed on
2011/01/05
7:55 UTC
Read the original article
Hit count: 318
Hi!
I have a machine running Apache with mod_proxy that I'm using to proxy a local Tomcat server running on another port.
The problem is that Tomcat does not support wildcard sub-domains(whole reason for using apache/mod_proxy) and our app uses the subdomain to figure out what account the data should come from. So with that said, is there a way to pass the subdomain as a url parameter via mod_proxy?
For example, I have this:
ProxyPass / http://example.com:8080/
In a virtual host block and I can access the site from any subdomain. Would is be possible to do something like:
ProxyPass / http://example.com:8080/?subdomain=the_sub_domain_requested
Thanks for any and all help...
Mike
© Server Fault or respective owner