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.

Pretty much what the title of the question is. On my local machine I've been setting up named virtual hosts for each clients website that I'm working on. It would be quicker if I could specify a wildcard rule that:

http://[hostname]

refers to files in

~/Sites/[hostname]/

Automatically without having to create an entry for each (which I currently have now)

Is this possible?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Yes, you can do this with mod vhost alias.

share|improve this answer

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.