When trying to reverse proxy a web server through Nginx, what keyword is missing from the following configuration sample?
When trying to reverse proxy a web server through Nginx, what keyword is missing from the following configuration sample?
To reverse proxy a web server through Nginx, the missing keyword from the configuration sample is 'proxy_pass'. This directive is used to pass requests to another server. The correct configuration line should be: proxy_pass http://proxiedserver:8080;. This tells Nginx to forward incoming requests to the specified proxied server.
D is correct! For example, if you want to configure Nginx as a basic reverse proxy server by http://10.1.1.252/, replace the entire server section of the configuration file with the following: server { listen 80; location / { proxy_pass http://10.1.1.252; } }