我让Tomcat在WindowsServer2012R2上运行,并使用以下URL配置了一个应用程序。我希望将此应用程序放到网上,因此设置一个http://localhost:8080/app反向代理
我使用Apache HTTPS Server作为反向代理,使用mod_proxy扩展。
ProxyPreserveHost On
ProxyPass /app http://192.168.40.20:8080/app
ProxyPassReverse /app http://192.168.40.20:8080/app我需要将Apache配置为将请求传输到tomcat,如下所示:
https://192.168.40.20/app/ >> http://192.168.40.29:8080/app/
但是,当我尝试访问该页面时,我得到一个空白页面,什么也没有显示
当我检查页面元素时:
Loading failed for the <script> with source “https://192.168.6.136/lib/ueditorsrc/ueditor.config.js”.
insurance:16
Loading failed for the <script> with source “https://192.168.6.136/lib/ueditorsrc/ueditor.all.js”.
insurance:17
Loading failed for the <script> with source “https://192.168.6.136/lib/ionic/js/ionic.bundle.min.js”.
insurance:20
Loading failed for the <script> with source “https://192.168.6.136/lib/ueditorsrc/angular-ueditor.js”.
insurance:21
Loading failed for the <script> with source “https://192.168.6.136/js/app.js”.页面的屏幕截图

发布于 2018-03-16 19:50:41
找到了解决方案,它必须通过在ap/前面放置一个正斜杠
https://stackoverflow.com/questions/49236760
复制相似问题