By fanbin0602
using nginx
there’s a config file in my conf.d dir called blog.xxx.com , and my blog runs well. but when i add a virtual host file www.xxx.com in sites-* dir point to a .html file, i did it like the steps in this webpage: (https://www.digitalocean.com/community/articles/how-to-set-up-nginx-virtual-hosts-server-blocks-on-ubuntu-12-04-lts--3) i type www.xxx.com , the browser also show me my blog site .
i deleted the default file both in conf.d and sites-* could you help me . i am a novice
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!
You can’t use both conf.d and sites-enabled, you can put your virtualhost in either conf.d or sites-enabled, not both.
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.