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?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.