Httpd.conf 重定向到外部 url apache tomcat
Httpd.conf redirect to external url apache tomcat
我有一个调用外部 URL 的应用程序。
当我尝试在本地主机中 运行 它时,只会加载本地主机中的一些静态 HTML 文件。
位于外部 URL 的任何文件都不会加载。它 returns 404 未找到错误。
我正在使用 Apache 服务器,Tomcat 到 运行 应用程序。
我的 Httpd.conf 文件有以下更改:
<VirtualHost *:80>
ProxyPreserveHost On
ProxyRequests On
ProxyVia On
ServerName localhost
ServerAlias *.localhost
ProxyPass /ab-ux-sass http://localhost:8080/ab-ux-sass
ProxyPassReverse /ab-ux-sass http://localhost:8080/ab-ux-sass
ProxyPass /ux-services https://boot.lender.com/ux-services
ProxyPassReverse /ux-services
https://boot.lender.com/ux-services
</VirtualHost>
需要进行哪些配置更改?
在 Httpd.conf 文件中进行了以下更改。它现在正在工作。
<VirtualHost *:80>
ServerName dev.localhost
SSLProxyEngine on
ProxyRequests Off
<Proxy *>
Order allow,deny
Allow from All
</Proxy>
ProxyPass /ab-ux-sass http://localhost:8080/ab-ux-sass
ProxyPassReverse /ab-ux-sass http://localhost:8080/ab-ux-sass
ProxyPass /ux-services https://boot.lender.com/ux-services
ProxyPassReverse /ux-services
https://boot.lender.com/ux-services
</VirtualHost>
我有一个调用外部 URL 的应用程序。 当我尝试在本地主机中 运行 它时,只会加载本地主机中的一些静态 HTML 文件。
位于外部 URL 的任何文件都不会加载。它 returns 404 未找到错误。
我正在使用 Apache 服务器,Tomcat 到 运行 应用程序。
我的 Httpd.conf 文件有以下更改:
<VirtualHost *:80>
ProxyPreserveHost On
ProxyRequests On
ProxyVia On
ServerName localhost
ServerAlias *.localhost
ProxyPass /ab-ux-sass http://localhost:8080/ab-ux-sass
ProxyPassReverse /ab-ux-sass http://localhost:8080/ab-ux-sass
ProxyPass /ux-services https://boot.lender.com/ux-services
ProxyPassReverse /ux-services
https://boot.lender.com/ux-services
</VirtualHost>
需要进行哪些配置更改?
在 Httpd.conf 文件中进行了以下更改。它现在正在工作。
<VirtualHost *:80>
ServerName dev.localhost
SSLProxyEngine on
ProxyRequests Off
<Proxy *>
Order allow,deny
Allow from All
</Proxy>
ProxyPass /ab-ux-sass http://localhost:8080/ab-ux-sass
ProxyPassReverse /ab-ux-sass http://localhost:8080/ab-ux-sass
ProxyPass /ux-services https://boot.lender.com/ux-services
ProxyPassReverse /ux-services
https://boot.lender.com/ux-services
</VirtualHost>