I'm working on a home LAN trying to set up two websites using the same Drupal installation.
CentOS 6.2
Apache 2.2.15
PHP 5.3.3
mysql Ver 14.14 Distrib 5.1.61
I have Drupal 7 successfully installed in /var/www/Drupal (for primary domain www.Drupal.ws)
There is a corresponding virtual host defined for it in the file /etc/httpd/conf/httpd.conf:
<VirtualHost *:80>
DocumentRoot /var/www/Drupal
ServerName www.Drupal.ws
<Directory /var/www/Drupal>
AllowOverride All
</Directory>
</VirtualHost>
I want to set up another domain: www.DrupalSite2.ws - not a subdomain of the primary one
I looked at many online articles about multi-site configuration and tried to set them up but they fail. When I enter URL www.DrupalSite2.ws, it goes to my normal Apache index.html file.
The file /etc/httpd/conf/httpd.conf does not contain a virtual host definition for www.DrupalSite2.ws. I saw notthing to indicate that it is required. Is this required?
The /etc/hosts file contains "127.0.0.1 www.DrupalSite2.ws". Is this required?
In /var/www/Drupal/sites, I added a folder "DrupalSite2.ws" and in it a "settings.php" file copied from the /var/www/Drupal/sites/default/default.settings.php. All files and folders are set to apache.apache ownership/group and have permissions set to 777 (Yes, I know its overkill.)