Haisam Ido wrote:
You went to
www.site1.com
while you defined site1.com. I'm not sure if that would work.
This isn't a drupal problem, it's an apache problem. The ServerAlias line should say
ServerAlias www.site1.com
There's no point in aliasing it to itself, but if you don't put in www.site1.com, it will never use this virtual host for www.site1.com. It'll use whatever the default virtual host is.
Johannes Skov Frandsen wrote:
Hey
After looking through tons of guides and howtoes I'm still nowhere near a working solutions.
I have added the following structure to my sites folder:
/sites/all/modules /sites/all/themes
/sites/default/ /sites/default/files/ /sites/default/settings.php
/sites/site1.com/files/ /sites/site1.com/modules/ /sites/site1.com/themes/ /sites/site1.com/tmp/ /sites/site1.com/settings.php
I have created at vhost file for apache2 with the following settings:
<VirtualHost *:80> ServerName site1.com DocumentRoot "/var/www/localhost/htdocs/drupal/" ServerAlias site1.com
<Directory "/var/www/localhost/htdocs/drupal/"> Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all DirectoryIndex index.php <FilesMatch "^.ht"> Order allow,deny Deny from all
</FilesMatch>
</Directory> </VirtualHost>
My problem is that drupal appears to ignore my settings file under site1.com. So I get the default site even if i access the site using 'www.site1.com'.
Am i missing something obvious here?
All help would greatly be appreciated.
Regards Joe