OS: UBUNTU 11.10

What I want to achieve:

www.example.local Main Installation

www.example1.local Installation inside sites folder

I took the following steps:

Installed drupal 7 as normal installation in the folder /var/www/example.

in /etc/hosts added the following:   www.example.local   www.example1.local

Then in /etc/apache2/sites-available ::

ServerName www.example.local

DocumentRoot /var/www/example

in example file.


ServerName www.example1.local

DocumentRoot /var/www/example/sites/www.example1.local

in www.example1.local file.

I created folder


and copied default.settings.php and made a settings.php from it.

Now , when I go to www.example.local I get the normal(main) installation it works fine.

But when I go to www.example1.local I see the list of files in the www.example1.local folder

enter image description here

What is the step I am missing? Or did I do something wrong ? Thank you in advance.

PS: I have not made any change in settings.php of the subsite.


1 Answer 1


Documentroot is not proper for the second case. It should be like this

ServerName www.example1.local
DocumentRoot /var/www/example

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.