Hello everyone. I’m kind of newbie in both VPS and Ubuntu LAMP server configuration. Just followed some community tutorials on how to instal ubuntu and then apache, php, mysql, etc. My goal is to have some domains hosted in the same droplet so I followed the virtual hosts tutorials.
The problem is that my domain is working with the WWW but it’s not working without it:
http://www.xcuse.me/ working http://xcuse.me/ not working
After reading a lot, I haven’t found anything similar to this. Can someone help me? Thank you so much!
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!
In the DNS settings create an ‘A’ record with hostname: ‘@’ and IP Address: <your ip address>. ‘WWW’ should be set as ‘CNAME’ record of ‘@’
Thank you edwingonzales1123! <br>I already have that (followed the tutorials) but the problem is exactly the oposite. It works fine if I put the “WWW” but it doesn’t work if I just type “xcuse.me”, it shows the directory contents from the /var/www folder. <br> <br>
Hello Kamal. Thank you for your help! <br>I think I got it to work now. <br> <br>I had 2 virtualhosts … the default one and the one for xcuse.me <br>In the default one, the document root was pointing to /var/www and I changed it to /var/www/xcuse.me/public_html and it’s working now. Don’t know if it is the best way but I’ll move on now :) need to prototype this app asap hehe <br> <br>Thank you again for your help (and edwingonzales1123 too). <br>
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.