We’ll use these to test our logging configuration. In this step, we will create several test files in the default Nginx website directory. Nginx installed on your server by following the How To Install Nginx on Ubuntu 16.04 tutorial. One Ubuntu 16.04 server set up with this initial server setup tutorial, including a sudo non-root user. We’ll also add additional information about requests (in this tutorial’s example, the time it takes to serve a request) to the access log beyond what Nginx includes by default. We’ll set up separate log files for different server blocks and then customize the logging output. In this guide, we will look at how to utilize Nginx’s logging module. It is much easier to work with log files that are well-structured. When errors happen, they will be saved in the logs as well. Each web site visitor and image seen or file downloaded is meticulously registered in the logs. In case of a web server, like Nginx, logs contain valuable information about each attempt to access resources through the web server. One of the most important sources of knowledge for administrators are log files, which contain information about system events. It also involves overseeing those services and making sure they’re running as smoothly as possible. Server administration is not only about the initial configuration of services.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |