Locations help NGINX find the right content to serve in response to a request. In this video, learn how to configure locations along with directives that configure NGINX to serve the right file quickly.
- [Instructor] Let's discuss how we can make…the configuration for our demo site more robust…by adding location directives.…Location directives allow us to extend our configuration…based on URI or a Uniform Resource Indicator…that makes up the request being processed by the server.…When we define a location, we use the location keyword,…an optional modifier and a required location definition.…Location directives are formatted as blocks…and are defined inside server blocks.…
They can also be nested inside other location blocks.…Inside the location block we can include other directives.…Specifically, we can include just about any directive…that can be defined inside a server block.…This makes locations very useful since we can configure…Nginx to process different requests in ways…similar to server blocks without having to create…additional servers.…When Nginx processes locations, it uses a series…of matches to determine the best one to use.…First considering exact matches, then locations with…prefixes and then locations with regular expressions.…
- 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.