页面未显示 SSL Apache 反向代理后面的 CSS 和 JavaScript

页面未显示 SSL Apache 反向代理后面的 CSS 和 JavaScript

我有两个 Web 应用程序在两个不同的服务器上运行。(198.168.40.23)服务器 1 和(198.168.40.20)服务器 2。服务器 1 运行托管在 Apache、centos7 上的 PHP 应用程序,而服务器 2 运行托管在 Apache Tomcat 7 上的 Java spring

它们都在 Apache SSL 反向代理后面,我可以访问两个页面(服务器 1 和服务器 2),但我发现一些 portlet 的 css 文件无法在反向代理后面加载。

登录后它也会返回到 apache 默认页面。

为什么会发生这种情况?

详情如下

<VirtualHost _default_:443>

SSLProxyEngine On
RequestHeader set Front-End-Https "On"

    ProxyPass "/forum" http://198.168.40.23
    ProxyPassReverse "/forum" http://198.168.40.23

    ProxyPass "/voda" http://198.168.40.20:8080/insurance/
    ProxyPassReverse "/voda" http://198.168.40.20:8080/insurance/
</VirtualHost>

httpd配置文件

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule  proxy_html_module modules/mod_proxy_html.so
LoadModule  headers_module modules/mod_headers.so
LoadModule  deflate_module modules/mod_deflate.so

tomcat 的 ssl_access_log

    [root@]# tail /var/log/httpd/ssl_access_log
   192.168.60.150 - - [08/Mar/2018:13:43:24 +0000] "GET /web HTTP/1.1" 200 11398
192.168.60.150 - - [08/Mar/2018:13:43:24 +0000] "GET /tomcat.css HTTP/1.1" 404 208
192.168.60.150 - - [08/Mar/2018:13:43:24 +0000] "GET /tomcat.png HTTP/1.1" 404 208
192.168.60.150 - - [08/Mar/2018:13:53:52 +0000] "GET /voda HTTP/1.1" 304 -
192.168.60.150 - - [08/Mar/2018:13:53:52 +0000] "GET /lib/ueditorsrc/ueditor.config.js HTTP/1.1" 404 230
192.168.60.150 - - [08/Mar/2018:13:53:52 +0000] "GET /lib/ueditorsrc/ueditor.all.js HTTP/1.1" 404 227
192.168.60.150 - - [08/Mar/2018:13:53:52 +0000] "GET /js/app.js HTTP/1.1" 404 207
192.168.60.150 - - [08/Mar/2018:13:53:52 +0000] "GET /lib/ionic/js/ionic.bundle.min.js HTTP/1.1" 404 230
192.168.60.150 - - [08/Mar/2018:13:53:52 +0000] "GET /js/controller/HomeCtrl.js HTTP/1.1" 404 223
192.168.60.150 - - [08/Mar/2018:13:53:52 +0000] "GET /lib/ueditorsrc/angular-ueditor.js HTTP/1.1" 404 231
192.168.60.150 - - [08/Mar/2018:13:53:52 +0000] "GET /js/WebService.js HTTP/1.1" 404 214
192.168.60.150 - - [08/Mar/2018:13:53:52 +0000] "GET /js/controller/LoginCtrl.js HTTP/1.1" 404 224
192.168.60.150 - - [08/Mar/2018:13:53:52 +0000] "GET /js/controller/DashboardCtrl.js HTTP/1.1" 404 228
192.168.60.150 - - [08/Mar/2018:13:53:52 +0000] "GET /js/controller/MyJobCtrl.js HTTP/1.1" 404 224
192.168.60.150 - - [08/Mar/2018:13:53:52 +0000] "GET /js/controller/InterestedCtrl.js HTTP/1.1" 404 229
192.168.60.150 - - [08/Mar/2018:13:53:52 +0000] "GET /js/controller/RefreshCtrl.js HTTP/1.1" 404 226
192.168.60.150 - - [08/Mar/2018:13:53:52 +0000] "GET /js/controller/PolicyCtrl.js HTTP/1.1" 404 225
192.168.60.150 - - [08/Mar/2018:13:53:52 +0000] "GET /js/controller/paymentList.js HTTP/1.1" 404 226
192.168.60.150 - - [08/Mar/2018:13:53:52 +0000] "GET /js/controller/USSD.js HTTP/1.1" 404 219
192.168.60.150 - - [08/Mar/2018:13:53:52 +0000] "GET /js/controller/CustomerListCtrl.js HTTP/1.1" 404 231
192.168.60.150 - - [08/Mar/2018:13:53:52 +0000] "GET /js/controller/CustomerEditCtrl.js HTTP/1.1" 404 231
192.168.60.150 - - [08/Mar/2018:13:53:52 +0000] "GET /js/controller/PaymentListTodayCtrl.js HTTP/1.1" 404 235



 /var/log/httpd/ssl_access_log
192.168.60.150 - - [08/Mar/2018:13:57:54 +0000] "GET /assets/javascript/jquery.min.js?assets_version=4 HTTP/1.1" 404 229
192.168.60.150 - - [08/Mar/2018:13:57:54 +0000] "GET /assets/javascript/core.js?assets_version=4 HTTP/1.1" 404 223
192.168.60.150 - - [08/Mar/2018:13:57:54 +0000] "GET /styles/elegance/template/forum_fn.js?assets_version=4 HTTP/1.1" 404 234
192.168.60.150 - - [08/Mar/2018:13:57:54 +0000] "GET /styles/elegance/template/ajax.js?assets_version=4 HTTP/1.1" 404 230
192.168.60.150 - - [08/Mar/2018:13:57:54 +0000] "GET /styles/elegance/theme/images/logo.png HTTP/1.1" 404 235
192.168.60.150 - - [08/Mar/2018:13:57:54 +0000] "GET /cron.php?cron_type=cron.task.core.prune_notifications&sid=1ecb7fe43bfcf275d879c20487e23189 HTTP/1.1" 404 206
192.168.60.150 - - [08/Mar/2018:13:57:54 +0000] "GET /assets/javascript/jquery.min.js?assets_version=4 HTTP/1.1" 404 229
192.168.60.150 - - [08/Mar/2018:13:57:54 +0000] "GET /assets/javascript/core.js?assets_version=4 HTTP/1.1" 404 223
192.168.60.150 - - [08/Mar/2018:13:57:54 +0000] "GET /styles/elegance/template/forum_fn.js?assets_version=4 HTTP/1.1" 404 234
192.168.60.150 - - [08/Mar/2018:13:57:54 +0000] "GET /styles/elegance/template/ajax.js?assets_version=4 HTTP/1.1" 404 230

我遗漏了什么或者遗漏了什么?

相关内容