Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
add comment

2 Answers

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

share|improve this answer
add comment

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
add comment

Your Answer

 
discard

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.