If a gateway such as an SSL accelerator or a load balancer is placed between a client and a Web server, when the Web container automatically redirects to a welcome file or the Form authentication window, the Web container may not properly create a forwarding URL because the container cannot acquire the information about the gateway.
To avoid this problem, you can use the gateway specification functionality. This functionality notifies a Web container of gateway information so that the Web container can properly redirect to a welcome file or Form authentication window.
The gateway specification functionality is used in the following case:
- When an SSL accelerator is placed between a client and Web server:
Even if a client accesses an SSL accelerator via HTTPS, the SSL accelerator accesses a Web server via HTTP, which causes the Web container to assume that the access uses HTTP. For this reason, HTTP is used for the URL scheme for the welcome file or Form authentication window that is the redirection destination.
In this situation, by using the gateway specification function to specify that the scheme be always considered as HTTPS, you can ensure that accesses are properly redirected.
- When a request without a Host header needs to be redirected away from the Web server that received the request
When redirecting a request without a Host header, the host name and the port number of the redirection destination URL will be the host name and the port number of the Web server that receives the request.
Use the gateway specification functionality when the host name and port number of the URL accessed by the client is different from the Web server that receives the request, such as when a load balancer is deployed before the Web server. As a result, the host name and port number accessed from the client are specified, so the request can be redirected properly.
Note that in the case of Web server integration, gateway specification functionality cannot be used when multiple different routes are used for accessing one Web container (when HTTP requests are forwarded to the Web container from multiple gateways). To use the gateway specification functionality in the case of Web server integration, use a configuration in which there is one access route to the Web Container.