apache反向代理。

回复 收藏

工作原因做了一个Apache反向代理,主要就是内部的url,映射到外部,供外网访问。其他url都很正常,就一个url报错502。

主要配置:

<VirtualHost *:80>

          ServerName    s.whty.com.cn

          ServerAlias   s.whty.com.cn

        ProxyPreserveHost On

        #无锡TSMP

        ProxyPass /tsmp http://10.8.3.231:21005

        ProxyPassReverse /tsmp http://10.8.3.231:21005

</VirtualHost>

error.log显示:

Mon Oct 17 14:17:56.903520 2016] [proxy_http:error] [pid 2332:tid 776] (20014)Internal error (specific information not available): [client 10.8.8.254:2755] AH01102: error reading status line from remote server 10.8.3.231:21005

[Mon Oct 17 14:17:56.903520 2016] [proxy:error] [pid 2332:tid 776] [client 10.8.8.254:2755] AH00898: Error reading from remote server returned by /tsmp

不知道有没有人清楚,查了很多资料,也没可参考的。求指教~~

2016-10-17 16:29 举报
已邀请:
0

HWQH - 学习,学习!赚钱,赚钱!

赞同来自:

我没配置过,理解一下这个错误吧:内部错误(不可用的网络信息)【客户端是10.8.8.254:2755]从10.8.3.231:21005远程服务器读取数据失败

通过/tsmp返回远程服务器失败

信息不全,没法进一步跟进

0

阿铭 管理员

赞同来自:

网上搜到一篇国外的,类似问题。  

它意思是你的ProxyPass 那行,写成这样 

ProxyPass /tsmp http://10.8.3.231:21005/ retry=1 acquire=3000 timeout=600 Keepalive=On 

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: