[Bug 64910] Header not set if under Location/LocationMatch and RewriteRule
https://bz.apache.org/bugzilla/show_bug.cgi?id=64910 Romain Lapoux changed: What|Removed |Added Summary|Header not set if under |Header not set if under |Location/LocationMatch and |Location/LocationMatch and |not a physical path |RewriteRule -- 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
[Bug 64910] Header not set if under Location/LocationMatch and RewriteRule in Directory
https://bz.apache.org/bugzilla/show_bug.cgi?id=64910 Romain Lapoux changed: What|Removed |Added Summary|Header not set if under |Header not set if under |Location/LocationMatch and |Location/LocationMatch and |RewriteRule |RewriteRule in Directory -- 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
[Bug 64910] Header not set if under Location/LocationMatch and not a physical path
https://bz.apache.org/bugzilla/show_bug.cgi?id=64910 --- Comment #3 from Romain Lapoux --- Sorry, I found the problem after a full Apache Dump and analyze/test of it. It's a problem with a RewriteRule. Consider the following config: vHost content SuexecUserGroup "#1041" "#1030" ServerName mydomain.com ServerAlias www.mydomain.com ErrorLog /var/log/virtualmin/mydomain.com_error_log CustomLog /var/log/virtualmin/mydomain.com_access_log combined DocumentRoot "/home/mydomain.com/public_html" ScriptAlias "/cgi-bin/" "/home/mydomain.com/cgi-bin/" DirectoryIndex index.php index.html index.htm index.php4 index.php5 SetEnvIf X-Forwarded-Proto https HTTPS=on AuthType None allow from all Require all granted Satisfy any Header always set AAA-Test "helloMyTest" Header always set AAA-Test "helloTmp" Header always set AAA-Test "helloTmp5" Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch allow from all Require all granted RewriteRule .* /home/mydomain.com/public_html/index.php [L] RewriteEngine on SSLEngine on SSLCertificateFile /home/mydomain.com/ssl.cert SSLCertificateKeyFile /home/mydomain.com/ssl.key SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1 ScriptAlias /awstats/ /home/mydomain.com/cgi-bin/ AuthName "mydomain.com statistics" AuthType Basic AuthUserFile /home/mydomain.com/.awstats-htpasswd Require valid-user SSLCACertificateFile /home/mydomain.com/ssl.ca /home/mydomain.com/public_html/ is empty. With this config, headers are never set, but if we move `RewriteRule .* /home/mydomain.com/public_html/index.php [L]` outside the `` directive, header are correclty set. So we are unable to use Location* and Header if this RewriteRule is set in a Directory directive. And to finish no problem if we set this directive in .htaccess of the same directory: .htaccess content RewriteEngine on RewriteRule .* /home/rlx-tech.fr/public_html/index.php [L] -- 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
[Bug 64910] Header not set if under Location/LocationMatch and not a physical path
https://bz.apache.org/bugzilla/show_bug.cgi?id=64910 Eric Covener changed: What|Removed |Added Status|NEW |NEEDINFO --- Comment #2 from Eric Covener --- Can you elaborate on what you mean by "not a physical path"? # Does not work Header always set AAA-Test "helloMyTest" It works for me if I request /mytest and get a 404. -- 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
[Bug 64910] Header not set if under Location/LocationMatch and not a physical path
https://bz.apache.org/bugzilla/show_bug.cgi?id=64910 --- Comment #1 from Romain Lapoux --- It's seem an old bug but not fixed: https://serverfault.com/questions/838623/apache-location-baz-directive-not-matching https://serverfault.com/questions/995849/locationmatch-in-the-virtual-host-not-working -- 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
[Bug 64910] New: Header not set if under Location/LocationMatch and not a physical path
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: --- ``` ... # Does not work Header always set AAA-Test "helloMyTest" # Works (tmp/index.html path exist) Header always set AAA-Test "helloTmp" # Does not work # or "mytest" or "/mytest/.*" Header always set AAA-Test "helloMyTest" # Works (tmp/index.html path exist) but "/tmp/notexist" does not work # or "tmp" or "/tmp/.*" Header always set AAA-Test "helloTmp" # Works always Header always set AAA-Test "helloTmp" ... ``` 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
[Bug 57691] mod_proxy/proxy_util confuses UDS scheme with HTTP scheme when using RewriteRule
https://bz.apache.org/bugzilla/show_bug.cgi?id=57691 Florian Wagner changed: What|Removed |Added CC||flor...@wagner-flo.net --- Comment #4 from Florian Wagner --- Hey Janne, I wanted to say thank you for your patch. It solves the problem for me, too. When will this be included in a release? -- 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
[Bug 57691] mod_proxy/proxy_util confuses UDS scheme with HTTP scheme when using RewriteRule
https://bz.apache.org/bugzilla/show_bug.cgi?id=57691 --- Comment #3 from Florian Wagner --- Hey Janne, I wanted to say thank you for your patch. It solves the problem for me, too. When will this be included in a release? -- 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