certs.d
: You should put your certifcates and keys here.conf.d
: Anything that extendsnginx.conf
and is included by it should be placed here.conf.extra.d
: Anything that is used either by vhosts inconf.sites.d
or upstreams inconf.upstreams.d
ornginx.conf
.conf.sites.d
: Virtual hosts go here.conf.upstreams.d
: Upstream configurations go here.conf.modules.d
: Symbolic link to/usr/lib/nginx/modules
, nginx modules should put their files here (you can symlink this tomodules
to avoid errors when installing.)logs.d
: Nginx logs go here, you also should make your vhost or upstream configurations to store logs here (you can link this to/var/log
if you want.)
sudo su
cd /etc
git clone https://github.com/ay0ks/nginx.git
systemctl restart nginx