【发布时间】:2017-09-09 18:23:47
【问题描述】:
我在 Ubuntu 16.04 服务器上运行的 Apache2(端口 83)上安装了 Joomla。 当我从本地网络(如 192.168.178.14:83)连接到页面时,它会出现并且一切都很好。要从 Internet 访问我的页面,还有另一台运行 Apache2 的服务器,它充当代理服务器。所有通过端口 80 和 443 的流量都进入这台机器,使用服务器名称决定流量必须转发到哪台机器。这适用于大约 10 个域和机器。 但是当我连接到我的 Joomla 域时,我得到一个没有任何格式、图形和模板的 HTML 站点。当我将端口直接转发到这台机器时,一切正常,使用此端口进行连接。 network topologie
我在 Ubuntu1 上的 VirtualHost 配置:
<VirtualHost *:80>
ServerName ksg-events.de
Redirect permanent / https://ksg-events.de/
</VirtualHost>
<VirtualHost *:443>
ServerName ksg-events.de
ProxyPreserveHost On
ProxyRequests Off
ProxyVia Off
ProxyPass / http://192.168.178.14:83/
ProxyPassReverse / http://192.168.178.14:83/
SSLCertificateFile /etc/letsencrypt/live/ksg-events.de/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/ksg-events.de/privkey.pem
</VirtualHost>
Ubuntu2 上的虚拟主机配置:
<VirtualHost *:83>
DocumentRoot /var/www/ksg-events.de/joomla
</VirtualHost>
感谢您的帮助!
【问题讨论】:
标签: apache joomla proxy reverse