© Rahul Soni 2016

Rahul Soni, Nginx, 10.1007/978-1-4842-1656-9_3

3. Nginx Core Directives

Rahul Soni

(1)Kolkata, West Bengal, India

By now, your Nginx server should be up and running. It is time to go ahead and take control over it! You can consider the directives as the nuts and bolts of your web server, using which ones you tweak by the way your web server performs. Nginx has a lot of directives and it is important that you know the basic semantics, so that you can fine-tune your server according to your requirements. You will learn about directives in detail in this chapter.

Location of Configuration Files

The Nginx configuration file is named nginx.conf. Depending on how you have installed Nginx, you can find the configuration in /etc/nginx, /usr/local/etc/nginx, ...

Get Nginx: From Beginner to Pro now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.