Posted by socialnicheguru on April 3, 2010 at 6:15pm
When I create sites or migrate sites, I can't access www.domainname.com but I can domainname.com
Any pointers on why?
Thanks.
When I create sites or migrate sites, I can't access www.domainname.com but I can domainname.com
Any pointers on why?
Thanks.
Comments
Yes... the alternate domain
Yes... the alternate domain must be added to the aliases list. (or redirected using any one of a variety of other methods)
Adding to the aliases list is best from the "easy to manage" side of things and is probably your best choice. You can edit settings to have this created automatically as well. GL
Yep
And if you had already set your Aliases in the site node, it's a DNS issue.
I'm having a similar issue. I
I'm having a similar issue. I can access http://taipeitechclub.com but when I go to http://www.taipeitechclub.com it brings the install script: http://www.taipeitechclub.com/install.php
Where do I go to set up the alias? I'm not sure which files I need to try and modify and how. In my
/var/aegir/config/vhost.ddirectory this is what is listed:-rw-r--r-- 1 aegir aegir 180 Apr 6 23:46 aegir.taipeitechclub.com.server-rw-r--r-- 1 aegir aegir 679 Apr 5 14:15 aegir.taipeitechclub.com_80
-rw-r--r-- 1 aegir aegir 3279 Apr 5 14:12 platform_5.conf
-rw-rw-r-- 1 aegir aegir 3279 Apr 6 23:46 platform_73.conf
-rw-rw-r-- 1 aegir aegir 671 Apr 11 04:32 taipeitechclub.com_80
When I
vi taipeitechclub.com_80it showsDocumentRoot /var/aegir/platforms/drupal-6.16/. I want to create multiple sites so I'm a bit confused why the document root isn't listed asDocumentRoot /var/aegir/platforms/drupal-6.16/sites/taipeitechclub.com/?The reason I would like to know the DocumentRoot is because if I want to use Google Apps to manage a site's email address, I have to put an .html file in the root for verification.
To set up the alias, first
To set up the alias, first enable the 'Site Aliasing' feature in /admin/hosting/features.
Then go to your site node and edit the node. Add the www.taipetechclub.com alias to the new 'Aliases' textfield that is present in the form.
The site will then get reverified and the apache vhost updated to include the alias.
The DocumentRoot is the platform directory and not the site subdirectory because that is not how Drupal works. Drupal's DocumentRoot is the platform's base directory (this is the case even if you don't use Aegir), which is where the Drupal system code is stored that is used to run your site. The /sites/$yoursite/ directory is just a subdirectory that makes sense to Drupal, not Apache, so Drupal knows where to bootstrap the appropriate site-specific settings.
You can probably put the .html file in /var/aegir/platforms/drupal-6.16, (not sure if it'll work, but it might). Otherwise, add the CNAME record to your DNS per the Google Apps instructions as an alternative to uploading the html file.
yep, that worked`
Thanks for the help, got it sorted. Nice feature to have site aliasing built right into Aegir.
Appreciate the explanation regarding DocumentRoot. The .html file in the /var/aegir/platforms/drupal-6.16 did work as you mentioned. If I need to add Google Apps/Mail to additional sites the same platform, I'll try verification by CNAME record.