简体   繁体   中英

Header set with Apache in multiple htaccess

I have a site at directory /aaa/bbb/ccc/index.php

I have an htaccess on every directory "/aaa", another in "/aaa/bbb" and another in "/aaa/bbb/ccc".

In the htaccess located at /aaa I have this

Header set AAA ZZZ

In the htaccess located at /aaa/bbb and /aaa/bbb/ccc I have this

Header set AAA XXXXXXXX

When I open the website using my browser the header AAA has the value ZZZ. For some reason the other htaccess files are not overriding the value of AAA. But what is really amazing is that if I change the htaccess from /aaa/bbb and /aaa/bbb/ccc to the code below the header gets overrided! Why?

<FilesMatch "^.*$">

    Header set AAA XXXXXXXX

</FilesMatch>

这看起来像个错误,我在https://bz.apache.org/bugzilla/show_bug.cgi?id=58789向Apache社区报告了它。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM