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>
精彩评论