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've been trying to setup the following with no success.

I'd like /WebContent/<any-folder-name>/html/index.html to accessible by http://<any-folder-name> Basically is a local domain, with wildcards enabled pointing to the same IP address. I've been trying with different RewriteRules but with no luck so far.

share|improve this question

You could easily use mod_vhost_alias to map the host names to a certain document root on your server.

share|improve this answer

Take a look at the Apache URL Rewriting Guide. The example under Virtual User Hosts sounds like exactly what you are trying to do.

share|improve this answer

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.