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 am a programmer, trying to launch my first website.. through different helpful posts in sf and others, I setup an account with Linode and set up a slice (Debian, Apache, ..etc). I have a Drupal site under development, and like to have a test site in the Linode server as well. Now, I like to have a site setup with the following requirement.

  1. What is the best way to setup and protect the test site along with the actual (production) site?. Is virtual host is the answer?

  2. To protect the test site, is .htaccess authentication sufficient to prevent access from public and robots?

I also modifying the theme, database contents etc, so having two sites under one drupal installation may not be good idea . what do u suggest?

thanks in advance.

share|improve this question
up vote 0 down vote accepted

This might help and is what I used:

Name-based is probably the most common unless you need SSL.

share|improve this answer
yes, I used "Running different sites on different ports". thanks – bsreekanth Dec 23 '10 at 13:23

you set you Drupal multiple as follow:

Server configuration

# Ensure that Apache listens on port 80 Listen 80

# Listen for virtual host requests on all IP addresses NameVirtualHost *:80

<VirtualHost *:80> DocumentRoot /www/example1 ServerName

# Other directives here


<VirtualHost *:80> DocumentRoot /www/example2 ServerName

# Other directives here


How to Drupal

share|improve this answer

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.