【发布时间】:2016-07-21 12:40:43
【问题描述】:
我使用 apache proxypass 将内容从其他服务器显示到我的基础服务器
我用这个代码
<VirtualHost *:80>
ServerAdmin webmaster@example.com
DocumentRoot /var/www/html/2
ServerName 2.example.com
ProxyPass /tv http://t1.example.com/tv/
ProxyPassReverse /tv http://t1.example.com/tv/
ErrorLog logs/errorlive_log
CustomLog logs/access_live common
</VirtualHost>
所以有没有办法首先检查 2.example.com (/var/www/html/2) 上是否存在文件,如果文件存在则从该服务器显示,如果文件不存在,则从 t1.example 请求和服务器.com/tv/
-我有第二个问题: 如果 server2 提供位于 server1 和服务器 2 上的视频正在观看 10 个用户 (10mbps),那么将从服务器 2 或服务器 1 获取 10mbps 的服务器,或者两个服务器将具有 10mbps 的负载
【问题讨论】:
标签: apache .htaccess reverse-proxy http-proxy