This video continues the discussion of creating a basic server configuration by adding directives for default server, server name, and index files.
- [Instructor] Let's take a look at the…simple server configuration that we already have in place.…So far, we've configured the port…this server will be listening on,…and the root directory where the files…for our site will be stored.…Now let's edit the file and add a few more directives.…First, let's add the "default_server" directive…to the "listen" statement.…
Because nginx can serve multiple files…from the same IP address, we can use the "default_server"…statement to tell nginx to use this server configuration…if no other configurations match the name…of the site being requested.…Which leads to the next item we need to add,…the name of the server, which is also the name of the site.…If you're familiar with Apache vhost configurations,…this is similar to setting up a name-based vhost.…
By including the server name "wisdompetmed.local"…and "www.wisdompetmed.local", we let nginx know…which sites the server configuration applies to.…Otherwise, if we were serving multiple sites…from the same IP address,…nginx might serve the wrong content.…
- 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.