开发者

Apache Alias Question

Is it possible to have an Apache Server evaluate its Aliases before it evaluates its Locations?

Alias /foo /bar
<Location "/bar">
SetHandler None
&l开发者_JS百科t;/Location>

So that the above code will work?


Actually it will, but based on your example you are not using alias correctly. It handles URL to file/directory mapping, which is why your location directive is not applying.

This is what I think you're looking for:

Alias /foo /var/www/foo
Alias /bar /var/www/foo
<Location "/bar">
    SetHandler None
</Location>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜