At the moment I am not creating an http block in my custom nginx.conf files that I am placing in sites-available.
If I do not create an http block in my files, does my file inherit from nginx.conf location in /etc/nginx/nginx.conf
I noticed at the bottom of the /etc/nginx/nginx.conf that this file includes the files that are in in sites-enabled, so I am guessing it does? If this is the case, what happens if I declare an http block in my app specific nginx.conf file? Will it ignore the default configuration from /etc/nginx/nginx.conf?
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!
As far as I know, nginx looks for nginx.conf in the root folder of nginx, not in sites-available, there shouldn’t even be a nginx.conf in that folder, maybe its a backup?
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.