Mastering Nginx
NGINX as a Reverse Proxy [ 84 ] } if ($host ~* (www\.example\.org|www\.example\.net)) { rewrite ^/(.*)$ http://www.example.com/$ ...
Chapter 4 [ 85 ] In each block, we have placed only those server_name that are relevant to the respective rewrite, so that no if ...
NGINX as a Reverse Proxy [ 86 ] server 127.0.0.1:9002; } server { location / { error_page 500 502 503 504 = @fallback; proxy_pas ...
Chapter 4 [ 87 ] When HTTP error code 401 is configured to be served from an error_ page, the authentication will not complete. ...
NGINX as a Reverse Proxy [ 88 ] Summary We have seen how NGINX can be used as a reverse proxy. Its efficient connection- handlin ...
Reverse Proxy Advanced Topics As we saw in the previous chapter, a reverse proxy makes connections to upstream servers on behalf ...
Reverse Proxy Advanced Topics [ 90 ] We will discuss these topics, as well as the remaining proxy module directives, in the foll ...
Chapter 5 [ 91 ] The following is an example configuration for enabling HTTPS connections to http://www.example.com: server { li ...
Reverse Proxy Advanced Topics [ 92 ] SSL ciphers The preceding ciphers were chosen based on NGINX's default, which excludes thos ...
Chapter 5 [ 93 ] Instead of passing the whole client certificate to the upstream server, NGINX can do some work ahead of time to ...
Reverse Proxy Advanced Topics [ 94 ] The preceding configuration is constructed out of the following parts to achieve the object ...
Chapter 5 [ 95 ] If the application still needs some information present in the certificate, for example, to authorize a user, N ...
Reverse Proxy Advanced Topics [ 96 ] In our scenario, we are providing a service to Swiss banks. We want the public parts of the ...
Chapter 5 [ 97 ] location / { # any IP's not from Switzerland or in our list above # receive the # default value of "0" and are ...
Reverse Proxy Advanced Topics [ 98 ] Due to its very low resource usage, NGINX acts ideally as the broker in a client- applicati ...
Chapter 5 [ 99 ] server 10.0.40.30; server 10.0.40.40; server 10.0.40.50; server 10.0.40.60; } Perhaps the time has come for the ...
Reverse Proxy Advanced Topics [ 100 ] Alternatively, perhaps it is time for scheduled maintenance on a particular upstream serve ...
Chapter 5 [ 101 ] Be careful, though, that the upstream servers can usually respond within the time set by the timeout, or NGINX ...
Reverse Proxy Advanced Topics [ 102 ] Directive Explanation proxy_buffering Activates buffering of proxied content; when switche ...
Chapter 5 [ 103 ] So, NGINX would be able to handle just under 25,000 simultaneous, active connections in its default configurat ...
«
1
2
3
4
5
6
7
8
9
10
»
Free download pdf