Basic NGINX Configuration
In this chapter, we will begin to establish an appropriate configuration for your web server. For this purpose, we need to first discover the syntax that is used in the NGINX configuration files. Then, we need to understand the various directives that will let you prepare and optimize your web server for different traffic patterns and hardware setups. Finally, we will create some test pages to make sure that everything has been done correctly and that the configuration is valid. We will only approach basic configuration directives here. This chapter and the next ones will detail more advanced topics, such as HTTP module configuration and usage, creating virtual hosts, and setting up SSL.
This chapter covers the following topics:
- The presentation of the configuration syntax
- Basic module directives
- Testing and maintaining your web server