httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 58789] header set multiple htaccess
Date Tue, 05 Jan 2016 00:40:02 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=58789

William A. Rowe Jr. <wrowe@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #4 from William A. Rowe Jr. <wrowe@apache.org> ---
Sorry I mis-parsed your question; is the following correct?

/aaa/.htaccess:
  Header set AAA ZZZ

/aaa/bbb/.htaccess:
  Header set AAA XXXXXXXX

/aaa/bbb/ccc/.htaccess:
  Header set AAA XXXXXXXX

(To clarify, there is no Header set AAA anywhere in your httpd.conf or other
config files - and none of the directives above are in <Section > blocks)

Request:
GET /aaa/bbb/ccc/index.php

Response:
AAA: ZZZ

Expected:
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."

Got it...

"But what is really strange is that if I change the htaccess from /aaa/bbb and
/aaa/bbb/ccc to the code below the header gets overrided! Why?"

/aaa/bbb/ccc/.htaccess:
  <FilesMatch "^.*$">
    Header set AAA XXXXXXXX
  </FilesMatch>

Request:
GET /aaa/bbb/ccc/index.php

Response:
AAA: XXXXXXXX

So - you have documented that httpd is configured to parse
/aaa/bbb/ccc/.htaccess, thank you for the clarity, sorry I misread your
question.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message