Getting Started With Nginx on Raspberry Pi (Full Guide) | TIC & Educación | Scoop.it
Nginx is primarily a web server, but can also be used as a proxy server. It’s free, open-source and often in direct competition with Apache to build web applications. As a web developer, I’m more used to Apache, but Nginx is known to be almost 3 times faster and lighter, which is great for a Raspberry Pi. Let’s see how to get it on your Pi.

The main package for Nginx is available in the default Raspberry Pi repository, so it can be installed with apt directly: “sudo apt install nginx”. The web files can then be created under /var/www/html and the configuration is made in /etc/nginx.