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

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

/home/apps/somework/public

by using:

local.somework.com

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:

local.websites.simple.com

/home/websites/simple/public

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

1 Answer 1

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.