开发者

Apache Alias Question

开发者 https://www.devze.com 2022-12-26 04:28 出处:网络
Is it possible to have an Apache Server evaluate its Aliases before it evaluates its Locations? Alias /foo /bar

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

精彩评论

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