请帮助此Apache ReverseProxy配置。现在,我们只为调制解调器分配了1个公共IP地址。我们计划访问托管在本地服务器上的所有Web应用程序。网络管理员所做的就是将端口转发到80服务器1。这是详细信息
DNS主机(外部)不是真实IP
++++++++++++++++++++++++++++++++++++
+ server1.com -> 112.15.15.15. +
+ app1 -> server1.com +
+ app2 -> server1.com +
++++++++++++++++++++++++++++++++++++
DNS主机(本地)
++++++++++++++++++++++++++++++++++++
+ app1.server1.com -> 192.168.0.11 +
+ app2.server2.com -> 192.168.0.12 +
++++++++++++++++++++++++++++++++++++
我使用以下配置为server1.com创建反向代理配置
<VirtualHost *:443>
ServerName imp.dost1.ph
ServerAdmin mis.dost1@outlook.com
SSLEngine On
SSLProxyEngine On
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/file.crt
SSLCertificateKeyFile /etc/apache2/ssl/file.key
SSLCertificateChainFile /etc/apache2/ssl/file.ca-bundle
ProxyPreserveHost On
ProxyPass / https://app2.server2.com/
ProxyPassReverse / https://app2.server2.com/
</VirtualHost>
但是当我访问app2.server1.com
时,显示的是server2根目录,而不是应用程序(子域)