NGINX uses log files to record requests and operational details. In this video, learn how to configure custom logs for a vhost and specific locations.
- [Instructor] NGINX uses log files…to record various operational details.…These logs are useful for monitoring normal operations…and tracking down issues if a problem occurs.…Let's start by taking a look…inside the main configuration file, NGINX.conf…Inside this file, if we search for log,…we can find two entries,…access_log and error_log.…The access log is where NGINX records…each request that it serves,…whether the request is served successfully or not.…
Each request can be recorded along with various metadata,…like the date and time of the request,…the IP address of the requester,…and the path to the document that was served.…NGINX uses the error log to store operational details…ranging from debug information…to warnings and critical errors.…If NGINX is set up to serve multiple sites,…but the default logging configuration is used,…then all the requests for all the sites…will be written to the same logs.…
This can become an issue if, for example,…you need to find the access logs for one specific site.…Fortunately, logging can be configured…
- Installing NGINX on Linux
- Configuring a virtual host
- Installing PHP and MariaDB for the LEMP stack
- Securing sites with NGINX
- Creating SSL certificates
- Reverse proxies
- Load balancing
Skill Level Beginner
DevOps Foundations: Infrastructure as Codewith Ernest Mueller2h 6m Intermediate
1. Install and Configure NGINX
2. The Linux, NGINX, MySQL, and PHP Stack
3. NGINX Security
4. Reverse Proxies and Load Balancers
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.