Question

domain not redirect

  • Posted February 9, 2014

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.

Subscribe
Share

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

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.

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>?

Ubuntu 12.04.3 x64

Depends, what OS are you using?

you guys mean my apache2.conf file?

Hey guys, Sorry, Im using LAMP / apache2 <br> <br>

at least you need to mention what web server type you are running i.e Nginx or Apache so that we can guess what the issue is… <br> <br>besides, it is better to give us a snapshot of your server config so that we know what the root file you setup…

What is the server root that you specified in your Web server’s configuration file?