This forum is no longer active. Please post your questions to our new community site

Forums Drupal

Mutlti site Drupal, Apache, Bitnami

Subscribe to Mutlti site Drupal, Apache, Bitnami 2 post(s), 2 voice(s)

 
Avatar melwyn 16 post(s)

I am using the Bitnami stack..& i am new to drupal so kind of a noob

I have successfully configured got multisite drupal installed and running but I have one query
Site1 is called LocalHost
Site2 is called Testsite1

My query is during (2nd site)multi site setup, you need to do some changes in the httpd-vhosts file in Apache. I have added which is all cool but:

<VirtualHost *:80>
ServerAdmin webmaster@testsite1.com
DocumentRoot “C:/Program Files/Drupal 6 Stack/apps/drupal/htdocs”
ServerName testsite1
ErrorLog “logs/testsite1.log”
CustomLog “logs/testsite1-access.log” common

Is the document root address right for the second site? or do i have to add a folder testsite1 ?

The same document root is in the httpd.conf file ..

if i have confused you lemme know ;)

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Hi,

Following this drupal guide you should modify the apache configuration file, creating a Virtual Host per site.


<VirtualHost *:80>
ServerAdmin [your email address]

DocumentRoot /usr/share/drupal6/
ServerName [your vhost#1 name]
ServerAlias [if you want to support <a href="http://www.example.com">www.example.com</a> and example.com]
RewriteEngine On
RewriteOptions inherit
</VirtualHost>

<VirtualHost *:80>
ServerAdmin [your email address]

DocumentRoot /usr/share/drupal6/
ServerName [your vhost#2 name]
ServerAlias [if you want to support <a href="http://www.example1.com">www.example1.com</a> and example1.com]
RewriteEngine On
RewriteOptions inherit
</VirtualHost>

I hope it helps.

Forums Drupal