- 论坛徽章:
- 0
|
回复 #35 HonestQiao 的帖子
而且从安全方面考虑,也应该选择1。如下:
If you do not have a separate computer with Squid installed, you can run Squid on the source server itself. Because both applications cannot have the same IP address or port number, you need to bind the source server to a different IP address or change the port number. It is better to change the IP address instead of the port number. This is because when the source server generates an error message, it may open an incorrect port, which results in conflicting port numbers.
If the source server generates an HTTP redirect message on an end user’s request, the source server adds the nonstandard port number to the Uniform Resource Indicator (URI), such as:
http://www.abc.com:81
As a result, if the client receives a response, the client connects to the nonstandard port and bypasses Squid. If you need to run Squid on the same computer as the source server, it is better to configure the source server to listen to the loopback address to avoid conflicting port numbers. |
|