Site resolves fine without "www", "www" creates database error

Posted by PatrickS on Server Fault See other posts from Server Fault or by PatrickS
Published on 2012-03-28T15:35:17Z Indexed on 2012/04/04 17:31 UTC
Read the original article Hit count: 270

Filed under:
|
|

Working with BOA ( Barracuda / Octopus / Aegir ) , I've installed a few Drupal sites without any problems and following the same process for all.

BOA is running on Nginx. All sites are going thru Cloudflare's network , where I set the same DNS settings.

A example.com points to IPADDRESS A www points to IPADDRESS

the nameservers of each domain are pointing to Cloudflare's respective nameservers.

It all works , except for one site that works perfectly without "www" , but with "www" returns the typical database error if Drupal can't find the site's database.

Site off-line The site is currently not available due to technical problems. Please try again later. Thank you for your understanding.

If you are the maintainer of this site, please check your database settings in the settings.php file and ensure that your hosting provider's database server is running. For more help, see the handbook, or contact your hosting provider.

In BOA, all sites have the same alias, basically a symlink, redirecting like this...

www.example.com -> example.com

© Server Fault or respective owner

Related posts about nginx

Related posts about drupal