Apache Virtual Hosts on Ubuntu - Multiple Domains - www redirection is not working for one domain

August 2, 2013 3.5k views
Hi , I have total 5 domains( d1,d2,d3,d4,d5). As per the created droplet with name d1 and configured all virtual host in ubuntu. https://www.digitalocean.com/community/articles/how-to-set-up-apache-virtual-hosts-on-ubuntu-12-04-lts and also added domains ( d1,d2,d3,d4) in DNS control panel pointing to droplet domain d1. All other domains are working and also redirecting "non www" to "www" -except domain d1. This domain d1 works with only "www" and listing all others domain website folders ( d2,d3,d4 and even d1). D1 is document root index.php is showing as http://www.d1.com/d1.com/ Please help me to resolve this issue
1 comment
  • I'm having a very similar problem, and I wish someone had answered you within the past 3 years.

1 Answer
Please pastebin your virtualhost config files: http://pastie.org
Have another answer? Share your knowledge.