Wednesday, March 28, 2018

linux - What is the different usages for sites-available vs the conf.d directory for nginx

I have some experience using linux but none using nginx. I have been tasked with researching load-balancing options for an application server.



I have used apt-get to install nginx and all seems fine.



I have a couple of questions.



What is the difference between the sites-available folder and the conf.d folder. Both of those folders were INCLUDED in the default configuration setup for nginx. Tutorials use both. What are they for and what is the best practice?



What is the sites-enabled folder used for? How do I use it?




The default configuration references a www-data user? Do I have to create that user? How do I give that user optimal permissions for running nginx?

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...