Get the default configuration file nginx for nginx, optimized for Debian GNU/Linux 8 (jessie). This example configuration ensures optimal compatibility and performance for nginx, making it easy to set up and adjust to meet your needs.
Find and download the configuration file here: /etc/ufw/applications.d/nginx.
For more configurations and setup guides, visit our related files section to further customize your system.
[Nginx HTTP]
title=Web Server (Nginx, HTTP)
description=Small, but very powerful and efficient web server
ports=80/tcp
[Nginx HTTPS]
title=Web Server (Nginx, HTTPS)
description=Small, but very powerful and efficient web server
ports=443/tcp
[Nginx Full]
title=Web Server (Nginx, HTTP + HTTPS)
description=Small, but very powerful and efficient web server
ports=80,443/tcp
Download the raw file with wget or curl
wget -O nginx.example https://exampleconfig.com/static/raw/nginx/debian8/etc/ufw/applications.d/nginx
curl https://exampleconfig.com/static/raw/nginx/debian8/etc/ufw/applications.d/nginx > nginx.example
Other config files you might find useful