提问人:inomi13 提问时间:11/3/2023 最后编辑:inomi13 更新时间:11/3/2023 访问量:60
Centos 7 中的 Apache 反向代理(按域)
Apache Reverse Proxy in Centos 7 by domains
问:
当我从后端服务器调用域 dev.examle.com 或 examle.com 时,我的 apache 反向代理有问题,我总是收到相同的内容。我没有收到特定虚拟主机的内容。当我禁用 apache 反向代理并且后端服务器是主服务器时,虚拟主机可以随心所欲地工作并显示路径 /var/www/html/$domain/public_html/index 中的内容.php
在 apache 反向代理上,我有以下域配置。
example.com
<VirtualHost *:80>
ServerName example.com
ProxyPreserveHost on
ProxyPass / http://10.10.1.3/
ProxyPassReverse / http://10.10.1.3/
</VirtualHost>
dev.example.com
<VirtualHost *:80>
ServerName dev.example.com
ProxyPreserveHost on
ProxyPass / http://10.10.1.3/
ProxyPassReverse / http://10.10.1.3/
</VirtualHost>
这是我的第一个问题,因为我找不到信息,我应该如何更新后端服务器?如何启用通过apache反向代理运行ftp?
答: 暂无答案
评论