Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Ask a Question
NGINX Reverse Proxy
Home
NGINX
NGINX Reverse Proxy
asked
Sep 5, 2019
in
NGINX
by
Robin
Q:
NGINX Reverse Proxy
nginx
nginx-introduction
nginx-tutorial
nginx-vs-apache
nginx-directives
nginx-variable
installing-nginx
security-control
load-balancing
content-cache
dynamic-module
reverse-proxy
processing-request
http-health-and-checks
1
Answer
0
votes
answered
Sep 5, 2019
by
Robin
NGINX Reverse Proxy
A proxy is a server that resides between internal applications and external clients, forwarding client requests to the appropriate server. An Nginx reverse proxy server is a proxy server that resides behind the firewall in a private network and directs client requests to the appropriate backend server.
A reverse proxy gives an additional level of abstraction and control to ensure the smooth flow of network traffic between clients and servers.
Uses of Reverse Proxy Server
Load - Balancing: A reverse proxy server can act as a traffic cop resides in front of our backend servers and distributing client requests across a group of servers in a manner that increases the speed and capacity utilization while ensuring no one server is overloaded, which can degrade performance. If the server is not up, then the load balancer redirects traffic to the remaining online servers.
Web Acceleration: Nginx reverse proxy is used to compress outbound and inbound data, as well as cache commonly requested content, both of which speed up the flow of traffic between clients and servers.
Security and Anonymity: We can intercept requests of the clients headed for our backend servers, by doing this a reverse proxy server protects their identities and acts as an additional defense against security attacks.
Passing a Request to a Proxied Server
When NGINX server proxies a request, it sends the request to a specified proxied server, fetches the response, and sends it back to the client. It is possible to provide a proxy requests to an HTTP server or a non-HTTP server using a specified protocol. Supported protocols include FastCGI, uwsgi, SCGI, and Memcached.
To pass a request to an HTTP proxied server, the proxy_pass directive is defined inside the location. For example:
location /some/path/ {
proxy_pass
http://www.example.com/link/;
}
To pass a request to a non-HTTP proxied server, use the appropriate **_pass directive:
fastcgi_pass: it passes a request to a fastCGI server.
uwsgi_pass: it passes a request to an uwsgi server.
scgi_pass: it passes a request to an SCGI server.
memcached_pass: it passes a request to a memcached server.
Related questions
0
votes
Q: NGINX UDP Health Checks
asked
Sep 5, 2019
in
NGINX
by
Robin
nginx
nginx-introduction
nginx-tutorial
nginx-vs-apache
nginx-directives
nginx-variable
installing-nginx
security-control
load-balancing
content-cache
dynamic-module
reverse-proxy
processing-request
http-health-and-checks
0
votes
Q: NGINX TCP Health Checks
asked
Sep 5, 2019
in
NGINX
by
Robin
nginx
nginx-introduction
nginx-tutorial
nginx-vs-apache
nginx-directives
nginx-variable
installing-nginx
security-control
load-balancing
content-cache
dynamic-module
reverse-proxy
processing-request
http-health-and-checks
0
votes
Q: NGINX Purging Content from the Cache
asked
Sep 5, 2019
in
NGINX
by
Robin
nginx
nginx-introduction
nginx-tutorial
nginx-vs-apache
nginx-directives
nginx-variable
installing-nginx
security-control
load-balancing
content-cache
dynamic-module
reverse-proxy
processing-request
http-health-and-checks
0
votes
Q: NGINX TCP and UDP Load Balancing
asked
Sep 5, 2019
in
NGINX
by
Robin
nginx
nginx-introduction
nginx-tutorial
nginx-vs-apache
nginx-directives
nginx-variable
installing-nginx
security-control
load-balancing
content-cache
dynamic-module
reverse-proxy
processing-request
http-health-and-checks
0
votes
Q: NGINX Serving Static Content
asked
Sep 5, 2019
in
NGINX
by
Robin
nginx
nginx-introduction
nginx-tutorial
nginx-vs-apache
nginx-directives
nginx-variable
installing-nginx
security-control
load-balancing
content-cache
dynamic-module
reverse-proxy
processing-request
http-health-and-checks
0
votes
Q: NGINX Processing Requests
asked
Sep 5, 2019
in
NGINX
by
Robin
nginx
nginx-introduction
nginx-tutorial
nginx-vs-apache
nginx-directives
nginx-variable
installing-nginx
security-control
load-balancing
content-cache
dynamic-module
reverse-proxy
processing-request
http-health-and-checks
0
votes
Q: NGINX Load Balancing
asked
Sep 5, 2019
in
NGINX
by
Robin
nginx
nginx-introduction
nginx-tutorial
nginx-vs-apache
nginx-directives
nginx-variable
installing-nginx
security-control
load-balancing
content-cache
dynamic-module
reverse-proxy
processing-request
http-health-and-checks
0
votes
Q: NGINX Content Caching
asked
Sep 5, 2019
in
NGINX
by
Robin
nginx
nginx-introduction
nginx-tutorial
nginx-vs-apache
nginx-directives
nginx-variable
installing-nginx
security-control
load-balancing
content-cache
dynamic-module
reverse-proxy
processing-request
http-health-and-checks
0
votes
Q: Nginx Security Controls
asked
Sep 5, 2019
in
NGINX
by
Robin
nginx
nginx-introduction
nginx-tutorial
nginx-vs-apache
nginx-directives
nginx-variable
installing-nginx
security-control
load-balancing
content-cache
dynamic-module
reverse-proxy
processing-request
http-health-and-checks
0
votes
Q: NGINX Minimal Configuration
asked
Sep 5, 2019
in
NGINX
by
Robin
nginx
nginx-introduction
nginx-tutorial
nginx-vs-apache
nginx-directives
nginx-variable
installing-nginx
security-control
load-balancing
content-cache
dynamic-module
reverse-proxy
processing-request
http-health-and-checks
0
votes
Q: NGINX Dynamic Modules
asked
Sep 5, 2019
in
NGINX
by
Robin
nginx
nginx-introduction
nginx-tutorial
nginx-vs-apache
nginx-directives
nginx-variable
installing-nginx
security-control
load-balancing
content-cache
dynamic-module
reverse-proxy
processing-request
http-health-and-checks
0
votes
Q: NGINX Compression and Decompression
asked
Sep 5, 2019
in
NGINX
by
Robin
nginx
nginx-introduction
nginx-tutorial
nginx-vs-apache
nginx-directives
nginx-variable
installing-nginx
security-control
load-balancing
content-cache
dynamic-module
reverse-proxy
processing-request
http-health-and-checks
0
votes
Q: NGINX http Health Checks?
asked
Sep 5, 2019
in
NGINX
by
Robin
nginx
nginx-introduction
nginx-tutorial
nginx-vs-apache
nginx-directives
nginx-variable
installing-nginx
security-control
load-balancing
content-cache
dynamic-module
reverse-proxy
processing-request
http-health-and-checks
0
votes
Q: NGINX Directive and Context
asked
Sep 5, 2019
in
NGINX
by
Robin
nginx
nginx-introduction
nginx-tutorial
nginx-vs-apache
nginx-directives
nginx-variable
installing-nginx
security-control
load-balancing
content-cache
dynamic-module
reverse-proxy
processing-request
http-health-and-checks
0
votes
Q: NGINX Variables
asked
Sep 5, 2019
in
NGINX
by
Robin
nginx
nginx-introduction
nginx-tutorial
nginx-vs-apache
nginx-directives
nginx-variable
installing-nginx
security-control
load-balancing
content-cache
dynamic-module
reverse-proxy
processing-request
http-health-and-checks
0
votes
Q: NGINX Directives
asked
Sep 5, 2019
in
NGINX
by
Robin
nginx
nginx-introduction
nginx-tutorial
nginx-vs-apache
nginx-directives
nginx-variable
installing-nginx
security-control
load-balancing
content-cache
dynamic-module
reverse-proxy
processing-request
http-health-and-checks
0
votes
Q: NGINX HTTP Load Balancing
asked
Sep 5, 2019
in
NGINX
by
Robin
nginx
nginx-introduction
nginx-tutorial
nginx-vs-apache
nginx-directives
nginx-variable
installing-nginx
security-control
load-balancing
content-cache
dynamic-module
reverse-proxy
processing-request
http-health-and-checks
0
votes
Q: Starting and Restarting NGINX
asked
Sep 5, 2019
in
NGINX
by
Robin
nginx
nginx-introduction
nginx-tutorial
nginx-vs-apache
nginx-directives
nginx-variable
installing-nginx
security-control
load-balancing
content-cache
dynamic-module
reverse-proxy
processing-request
http-health-and-checks
0
votes
Q: What is Nginx Plus?
asked
Sep 5, 2019
in
NGINX
by
Robin
nginx
nginx-introduction
nginx-tutorial
nginx-vs-apache
nginx-directives
nginx-variable
installing-nginx
security-control
load-balancing
content-cache
dynamic-module
reverse-proxy
processing-request
http-health-and-checks
0
votes
Q: Installing NGINX on Windows
asked
Sep 5, 2019
in
NGINX
by
Robin
nginx
nginx-introduction
nginx-tutorial
nginx-vs-apache
nginx-directives
nginx-variable
installing-nginx
security-control
load-balancing
content-cache
dynamic-module
reverse-proxy
processing-request
http-health-and-checks
...