1
在评估其位置之前是否可以让Apache服务器评估其别名?Apache别名问题
Alias /foo /bar
<Location "/bar">
SetHandler None
</Location>
这样上面的代码就可以工作了吗?
在评估其位置之前是否可以让Apache服务器评估其别名?Apache别名问题
Alias /foo /bar
<Location "/bar">
SetHandler None
</Location>
这样上面的代码就可以工作了吗?
其实它会,但基于你的例子,你没有正确使用别名。它处理URL到文件/目录映射,这就是您的位置指令不适用的原因。
这是我认为你正在寻找:
Alias /foo /var/www/foo
Alias /bar /var/www/foo
<Location "/bar">
SetHandler None
</Location>