Apache httpd 目录位置优先级

Apache httpd 目录位置优先级

Windows 7 上带有 SSL 的 Apache 2.2

我有以下代理通行证配置,效果很好

<Location /myproject>
    RequestHeader add X-LocalHeader "Headers For the Win"
    ProxyPass http://localhost:8084/myproject
    ProxyPassReverse http://localhost:8084/myproject
    ProxyPassReverseCookiePath /myproject http://localhost:8084/myproject
</Location>

现在,我想添加另一个配置,希望每次路径以 /myproject/newux 开头时都转到本地文件夹。

我尝试在上述 Location 指令之前和之后都这样做,但不起作用(代理配置首先生效)

Alias "/myproject/newux" "D:/apps/Apache2.2/htdocs/myproject/newux"

<Directory "D:/apps/Apache2.2/htdocs/myproject/newux">
    Options Indexes
</Directory>

什么是正确的配置?

相关内容