Nginx
Documentation
Installation
apt-get install nginx
sudo unlink /etc/nginx/sites/enabled/default
- This makes it so the default config won't be used anymorecd /etc/nginx/sites-available/
* sites-available is where you put configs that can be used for later
4. sudo nano {name}.conf
- This will create the new config file
5. Make config. Config references can be down under the Subsections tab
6. ln -s /etc/nginx/sites-available/{name}.conf /etc/nginx/sites-enabled/{name}.conf
- This will enable the Nginx config
Testing and Restart Nginx
nginx -t -c /etc/nginx/{name}.conf
- This will test the config filesystemctl restart nginx
- Will restart the Nginx service and enable the config insites-enabled
Last updated