Question

domain not redirect

Hello guys,

if I type www.mydomain.com I want to see the index.html at /var/www/mydomain.com/public_html/

but I see my test index.html on /var/www/

I only can see my site if I acess http://myIP/mydomain.com/public_html/

can somebody help me? any tips?

Thanks.


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.

Thanks for your help guys, found the problem. Now its working after I check the step five from this tutorial <br> <br>https://www.digitalocean.com/community/articles/how-to-set-up-apache-virtual-hosts-on-ubuntu-12-04-lts <br> <br>regards.

2 domains and 1 subdomain listed there, the subdomain is working fine: mcflats.belasmarcas.com.br , but the main domain: belasmarcas.com.br not working correctly, its showing me the index.html file at /var/www/ and not /var/www/belasmarcas.com.br/public_html <br>

What’s the output of <pre>sudo ls /etc/apache2/sites-enabled</pre>?