ApacheProxyPass在http请求中附加代理端口

nfg76nw0  于 2021-10-10  发布在  Java
关注(0)|答案(0)|浏览(189)

我有一个带有url的 swagger 的用户界面:https://mytestdomain.internal.net/webintegration/swagger-ui.html
webintegration请求通过apache proxypass通过aws alb代理到后端服务器,配置如下。

<VirtualHost *:80>
DocumentRoot        /internal/apache/www
ErrorLog            "logs/Mytestdomain.internal.net-error_log"
CustomLog           "logs/Mytestdomain.internal.net-access_log" combined
ServerName          Mytestdomain.internal.net
RewriteEngine   On

ProxyPreserveHost On
ProxyPass / http://internal-alb-app-237178657.us-east-1.elb.amazonaws.com:8081/ nocanon
ProxyPassReverse / http://internal-alb-app-237178657.us-east-1.elb.amazonaws.com:8081/
</VirtualHost>


出于某种原因,当我单击swagger发送请求时,请求url中还附加了端口。这有什么原因吗?早些时候,我们使用了ajp协议,但没有这个问题。后端应用程序在tomcat上运行

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题