Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 /

In a virtual host block and I can access the site from any subdomain. Would is be possible to do something like:

ProxyPass /

Thanks for any and all help...


share|improve this question

The answer was to use mod_rewrite...

share|improve this answer
I am facing the same problem, could you by any chance post the mod rewrite configuration you used please? – KayKay Feb 21 '12 at 0:18

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.