https://bz.apache.org/bugzilla/show_bug.cgi?id=64910

            Bug ID: 64910
           Summary: Header not set if under Location/LocationMatch and not
                    a physical path
           Product: Apache httpd-2
           Version: 2.4.46
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: mod_headers
          Assignee: bugs@httpd.apache.org
          Reporter: ma...@manusfreedom.com
  Target Milestone: ---

```
<VirtualHost *:443>
...
# Does not work
<Location "/mytest">
  Header always set AAA-Test "helloMyTest"
</Location>
# Works (tmp/index.html path exist)
<Location "/tmp">
  Header always set AAA-Test "helloTmp"
</Location>
# Does not work
<LocationMatch "/mytest"> # or "mytest" or "/mytest/.*"
  Header always set AAA-Test "helloMyTest"
</Location>
# Works (tmp/index.html path exist) but "/tmp/notexist" does not work
<LocationMatch "/tmp"> # or "tmp" or "/tmp/.*"
  Header always set AAA-Test "helloTmp"
</LocationMatch>
# Works always
<LocationMatch "/.*">
  Header always set AAA-Test "helloTmp"
</LocationMatch>
...
</VirtualHost>
```

Tested on Ubuntu 18.04 using http://ppa.launchpad.net/ondrej/apache2/ubuntu

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscr...@httpd.apache.org
For additional commands, e-mail: bugs-h...@httpd.apache.org

Reply via email to