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

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.

1 Answer 1

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.