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>.homelan.net. Basically homelan.net 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.

link|improve this question
feedback

2 Answers

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

link|improve this answer
feedback

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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