By Zachariahus
Hi, so I set up my two sites by using the article posted here: https://www.digitalocean.com/community/articles/how-to-set-up-nginx-virtual-hosts-server-blocks-on-ubuntu-12-04-lts--3
However, when I navigate to the second site I setup it displays the first site instead, so I have two domains pointing to the same content. I had this issue once already and reset my droplet to start over anew just in case I had messed something up installing everything… but it still persists.
I am on Ubuntu 12.04.3 x64 with a standard LEMP stack, nothing else installed.
First site ‘sites-available’ file: http://pastebin.com/9p178DJc
Second site ‘sites-available’ file: http://pastebin.com/sLWgCRhV
Thanks in advance. -Z
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!
They are symbolic links back to the <code>sites-available</code> files. I just made sure that they are linked and it appears they are. <br> <br>If I try to navigate to and edit the <code>sites-enabled</code> directory, it opens the <code>sites-available</code>. Which is I believe working correctly.
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.