First - I created a droplet on Ubuntu 14.04 LTS and gave it the name isahappyperson.com
Second - I have two domain names pointed to the droplets IP address
Third - I followed the directions here https://www.digitalocean.com/community/articles/how-to-set-up-apache-virtual-hosts-on-ubuntu-14-04-lts
I did so exactly and using my two domain names
ididntsee.com is working and is displaying the proper index.html file
isahappyperson.com is showing the apache2 ubuntu default index.html file even though I edited the /etc/apache2/sites-available/isahappyperson.com.conf file to show the following:
DocumentRoot /var/www/isahappyperson.com/public_html ServerName isahappyperson.com ServerAlias www.isahappyperson.com
I double checked to ensure I created the index.html file in the correct directory at /var/www/isahappyperson.com/public_html/index.html
Any thoughts as to what is missing?
My goal is to install Wordpress on both sites using the same droplet.
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!
The conf files in sites-available aren’t read by Apache. You need a link in sites-enabled to the conf file. Ubuntu many have the a2ensite command available to do that for you- I don’t know for sure. If not, you’ll need to link it (or copy the conf file) yourself. <br>
Thank you @Larry Fransson, <br> <br>I ran: <br>sudo a2ensite ididntsee.com.conf <br>sudo a2ensite isahappyperson.com.conf <br> <br>While following the steps in this tutorial https://www.digitalocean.com/community/articles/how-to-set-up-apache-virtual-hosts-on-ubuntu-14-04-lts <br> <br>Is that what you are referring to?
Update: Glad to report that all is well and working fine. <br>Had to run a2dissite 000-default then service apache2 restart All is good now :)
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.