【发布时间】:2018-01-05 05:06:45
【问题描述】:
我有两个在 CentOS 7 上运行 Apache 2.4 的 Web 服务器,我正在尝试为我的 Web 服务器设置一个反向代理服务器。到目前为止,代理服务器正在使用 Let's Encrypt 证书,当我在更改任何虚拟主机配置之前访问代理服务器时,我访问了我在代理上设置的域,并在左上角看到一个绿色锁手角(没问题)。顺便说一句,我正在使用 Firefox。
现在,当我配置虚拟主机以将请求重定向到我的 Web 服务器时,我得到一个缺少内容的网页(浏览器锁定上的黄色感叹号)。显然,我的网络浏览器似乎为了保护我自己而阻止了这些图像。代理服务器似乎正在重定向我的原始请求,这很好,但我没有在屏幕上看到所有内容加载。就像它被过滤掉了(它是)因为浏览器只是说它不安全。
我该如何解决?
这是我对虚拟主机的配置:
<VirtualHost _default_:443>
# General setup for the virtual host, inherited from global configuration
#DocumentRoot "/var/www/html"
#ServerName www.example.com:443
# Use separate log files for the SSL virtual host; note that LogLevel
# is not inherited from httpd.conf.
ErrorLog logs/ssl_error_log
TransferLog logs/ssl_access_log
LogLevel warn
# SSL Engine Switch:
# Enable/Disable SSL for this virtual host.
SSLEngine on
#
ProxyRequests Off
ProxyPass / http://IP:80/
ProxyPassReverse / http://IP:80/
</virtualhost>
我也看过这篇文章:http://awesometoast.com/cors/
【问题讨论】:
标签: linux apache ssl centos7 httpd.conf