Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 have a situation where I need to serve multiple websites from the same IP address for testing purposes with Apache. I need to set the sites up as follows:    ->    site1_folder    ->    site2_folder    ->    site3_folder

In other words, I want to append a folder name (or append something) to the IP address and map this to a document root. How can I set something like this up in Apache? Also, is it possible to set it up to automatically map to certain folders so I don't have to add directives for each documentRoot?

share|improve this question

migrated from Nov 10 '10 at 6:42

This question came from our site for professional and enthusiast programmers.

You will need to use vhosts ( virtual hosts )

There are very simple how-tos on the internet..


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.