[英]Apache Reverse Proxy behind port forwardind Timeout : 503 - Service Unavailable
Here is my situation, I have two reverse proxy servers, A and B.这是我的情况,我有两个反向代理服务器,A 和 B。
Reverse proxy A directs the request to a hidden IP with a port number to the second server.反向代理 A 将请求定向到隐藏的 IP,并带有到第二个服务器的端口号。 Reverse proxy server B redirects the request to a local server.
反向代理服务器 B 将请求重定向到本地服务器。
Unfortunately, I have a problem with reverse proxy server B, it doesn't work, and I have a 503 - Service Unavailable code in the browser when I type the address of server A.不幸的是,我的反向代理服务器 B 有问题,它不起作用,并且当我键入服务器 A 的地址时,浏览器中有一个 503 - 服务不可用代码。
Here is a diagram:这是一个图表:
[Internet] -> [Reverse Proxy A] -> {IP + Port} -> [Reverse Proxy B] -> [Local Server]
I tested the local IP address + the port, it works, the same for proxy A which of course redirects the expected request.我测试了本地 IP 地址 + 端口,它可以工作,代理 A 也是如此,它当然会重定向预期的请求。
Here is the.conf file of proxy server B:这是代理服务器B的.conf文件:
<VirtualHost *:80>
ServerName {hidden-ip}:3401
ServerAlias {hidden-ip}:3401
ProxyPreserveHost On
ProxyPass / http://192.168.1.37:4401/
ProxyPassReverse / http://192.168.1.37:4401/
</VirtualHost>
<VirtualHost *:443>
ServerName {hidden-ip}:3401
ServerAlias {hidden-ip}:3401
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://192.168.1.37:4401/
ProxyPassReverse / https://192.168.1.37:4410/
<Location />
Order allow,deny
Allow from all
</Location>
</VirtualHost>
What could be causing the malfunction?什么可能导致故障?
In your configuration you have a typo error in在您的配置中,您有一个拼写错误
ProxyPass / http://192.168.1.37:4401/
ProxyPassReverse / https://192.168.1.37:4410/
change it as below如下更改
ProxyPass / http://192.168.1.37:4401/
ProxyPassReverse / http://192.168.1.37:4401/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.