How to Structure Nginx Configurations for Clean and Maintainable Servers
moeinkiani.com·3d·
Discuss: DEV
📂Dotfiles
Preview
Report Post

So let’s dive into configuring our Nginx

I assume that you already have a familiarity with Nginx. You should also have it installed on your machine.

Let’s dive in.

All of the configuration files are in this directory : /etc/nginx

Inside that directory, three directories and one file are important for use:

/sites-available   /sites-enabled   /conf.d   nginx.conf

nginx.conf contains the general configuration of Nginx

/conf.d is a directory where you can define your specific configurations for Nginx

/sites-available is a directory where you define your configurations for a specific website (you may have three websites, like one is your blog, the other is your personal website, and the other is for your business. In that case, you need to define a configura…

Similar Posts

Loading similar posts...