Don't know what is going on here except that this time instead of adding a subdomain for my multisite I am adding a new domain which is already pointing to same IP.

I have set it up exactly as subdomain except obviously the name in sites folder reflects another domain name.

When I go to the new domain address it links only to the root of the site and not the root of the drupal folder.

I have firstsite.com (links to plain html)

then sub.firstsite.com (links to drupal root folder)

then sub2.firstsite.com (links to drupal root folder by way of sites folder)

then secondsite.com (links to plain html even though on drupal root sites folder)

I NEED secondsite.com to behave in same way as sub2.firstsite.com



vi my.conf

my rules

NameVirtualHost *:80

ServerName firstsite.net ServerAlias www.firstsite.net ServerAdmin vps@firstsite.net DocumentRoot "/var/www/html" AllowOverride All Allow from all

ServerName sub1.firstsite.net ServerAlias www.sub1.firstsite.net ServerAdmin vps@sub1.firstsite.net VirtualDocumentRoot "/var/www/html/drupal"

ServerName sub2.firstsite.net ServerAlias www.sub2.firstsite.net ServerAdmin vps@sub2.firstsite.net VirtualDocumentRoot "/var/www/html/drupal"

ServerName secondsite.com ServerAlias www.secondsite.com ServerAdmin vps@secondsite.com VirtualDocumentRoot "/var/www/html/drupal"

ServerName localhost

  • 1
    Is this Drupal 6 or 7? If it's 7, have you created a file called sites.php inside the sites directory? (So ultimately it'd be located at sites/sites.php) If you need examples of how to configure said file, you should see an existing file called example.sites.php inside the sites directory... – jerdiggity May 28 '13 at 8:00
  • Drupal 7 and my aliases are listed in /etc/httpd/conf.d/my.conf – cea May 28 '13 at 8:08
  • I haven't had to use that file for my other site which works just fine- why would I need it for this one? – cea May 28 '13 at 8:11
  • 1
    @Charlie multi sites cant work without a properly formed sites.php file. Just copy the example file and tweak it as required – Clive May 28 '13 at 9:07
  • 1
    no harm at all, I will add it. – cea May 28 '13 at 10:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.