I have a drupal 7 installation at mysite.com. I want clients to preview their sites at (ex: mysites.com/client1). I am using a Virtual Private Server.
I think I am confused about virtual hosts and mutisites and a VPS.
Here is what I though I could do:
Install drupal 7 at mysites.com.
Set up a default site using "settings.php" in the default folder. This is fine. If I navigate to mysite.com, I get the standard drupal installation.
I created a new folder called "client1" in mysite.com/sites
I created a new database called "client1database".
I added a settings.php file in mysite.com/sites/client1

When I go to mysite.com/client1, I get a page not found error.
I have tried using symbolic links, changing .htacces files.
I HAVE NOT tried setting up a virtual host for mysites.com. If this is what I need to do, can someone explain how to do this.

Comments

yelvington’s picture

You don't need a vhost. You do need a DNS entry.

client1.example.com CNAME www.example.com

Now both domains resolve to the same server. Drupal looks at the hostname and picks the right config file.

It is possible to use symbolic links as you are attempting, but the process is error-prone -- as you are discovering. Much simpler with a DNS entry.