NGINX is useful beyond simply serving static content and works wonderfully as a reverse proxy in front of other backend services. In this activity, the student will set up NGINX as a reverse proxy for a simple web application and a WordPress blog. Being able to configure NGINX for use with a variety of application types allows you to use the right tool for the job (WordPress for blogging in this case) and provide a lot of business value.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Serve WordPress Content for blog.example.com
The student is asked to route traffic from blog.example.com to the locally installed WordPress application. PHP-FPM is listening on the socket at
/var/run/php-fpm.sock
and is the recommended FastCGI proxy destination.- Proxy Requests to Web Application for example.com
Requests for example.com should all be routed to the web application listening on port 8000.