Most of the time when you’re setting up a web server on the Pi, you’ll end up using Apache. However, sometimes you want a lighter-weight solution. This is where nginx comes in. Shane Pfaffly has written a tutorial on setting it up and creating a simple website using nginx. Read it here.