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 don't know how else to word this question. To clarify:

I currently setup vhosts on my machine so I can access this folder:


by using:

I have to setup a vhost for each one. Is there a way to tell apache where to look for these routes? To automatically rewrite, so to speak?

I may even use different folders for different things and I'd love to be able to go:


Ideas? Possible?

share|improve this question
If I'm understanding you right, you're looking to automatically serve new vhosts based on a directory name. Is that what you're asking? – sysadmin1138 Feb 11 '11 at 2:53
that's exactly what I'm asking. This is in a local development environment. – Damien Roche Feb 11 '11 at 3:10

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.