By info355111
Hey guys,
I had a working nginx config for my domain, but now I want to add a subdomain to the config. I have following virtual.conf in my /etc/nginx/conf.d folder and it looks like this: http://pastebin.com/TByryv10 Basically I just copied the serverblock that was working and changed the server_name and paths.
My fist server block is still working, but the subdomain isn’t. Any idea what the problem is?
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!
Did you add A record and Cname to your DNS at DO?? <br> <br>I guess this is what you are missing, check here: <br> <br>https://www.digitalocean.com/community/articles/how-to-set-up-and-test-dns-subdomains-with-digitalocean-s-dns-panel
Oh no I didn’t do that, thanks for the info! <br>The example is more complex than what I want though, not sure if I did it correctly. <br>I just need to add a CNAME record “subdomain” and “subdomain.appstudions.be.” right?
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.