Skip to content

Instantly share code, notes, and snippets.

@AJMaxwell
Created September 20, 2017 19:09
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AJMaxwell/3b94939a61559b47c2c4dc0ff265d172 to your computer and use it in GitHub Desktop.
Save AJMaxwell/3b94939a61559b47c2c4dc0ff265d172 to your computer and use it in GitHub Desktop.
UFW configuration for Nginx on Ubuntu 16.04 (/etc/ufw/applications.d/nginx)
[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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment