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

  • Posted on August 2, 2013
  • cwmohAsked by cw moh

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.

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

Please help me to resolve this issue

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Please pastebin your virtualhost config files: