用于大规模代理的 Virtaul 主机文件不起作用

用于大规模代理的 Virtaul 主机文件不起作用

我正在尝试调整批量代理的示例: http://httpd.apache.org/docs/2.0/vhosts/mass.html

vhost.map包含:

www.customer-1.com /www/customers/1

httpd.conf:

RewriteEngine on

RewriteMap lowercase int:tolower

# define the map file
RewriteMap vhost txt:/www/conf/vhost.map

# this does the file-based remap
RewriteCond ${vhost:%1} ^(/.*)$
RewriteRule ^/(.*)$ %1/docs/$1

现在,如果我转到www.customer-1.com,什么也不会发生。我做错了什么?当然,我重启了服务器。

答案1

这看起来像是 DNS 错误。请确保 www.customer-1.com 正确解析为执行代理的机器的 IP 地址。

相关内容