Created attachment 38499 [details] File/Directory Configuration Hello I am reporting garbled characters when accessing https with RewriteRule and SSI in the following environment. * The problem occurs when HTTP/2 is enabled in Apache HTTPD 2.4.55, but the garbled characters do not occur when HTTP/2 is disabled. * There was no problem with HTTP/2 enabled in Apache HTTPD 2.4.54. Environment OS : CentOS Linux release 7.9.2009 Apache : httpd-2.4.55 HTTP/2 : nghttp2-1.52.0 OpenSSL : openssl-1.1.1t * SSL configuration (HTTP/2 enabled) SSLEngine On Protocols h2 http/1.1 File/Directory Configuration : DocumentRoot /.htaccess /dev/test.html /dev/include.inc (File is attached) * Garbled characters when accessing via https https://xx.xx.xx.xx/test.html == Result displayed in web browser '³QLÉO.©, The file is displayed without garbled characters in Apache 2.4.54 * Garbled characters do not occur when accessing with http == Result displayed in web browser test Hello include hello
I added a test for this at <https://github.com/icing/mod_h2/blob/master/test/modules/http2/test_007_ssi.py> and there it behaves as it should. No garbling. Could you specify the config around this in more detail? Also, an error log with 'LogLevel http2:trace2' would be helpful. Thanks!
Created attachment 38501 [details] Error log with LogLevel of http2:trace2
Thanks for your support, it is much appreciated. Attached is the error.log when LogLevel is set to http2:trace2. (I have changed the IP address of the access source to xxx) Best regards.
I have an additional question. I am not familiar with the core or test code of Apache HTTPD, but is RewriteRule in the test code? If it is a normal SSI, it is not a problem. The garbled characters occur when the following RewriteRule conditions are present. Thank you in advance. ---- RewriteEngine On RewriteCond %{REQUEST_URI} !^/dev/ RewriteRule ^(.*) /dev/$1
Thanks for the rewrite config. I am still unable to reproduce on my dev machine. The thing that is new in the module is the handling of mmap'ed file content. Can you check if adding H2CopyFiles on makes a difference for you?
Created attachment 38502 [details] Log with H2CopyFiles on
I set H2CopyFiles on but it did not change. Please check the error_log_H2CopyFiles_on.log also attached. (I configured H2CopyFiles on to Apache httpd 2.4.54, built with the same configure options, and there were no garbled characters here.) Best regards.
Hello. Apahe 2.4.56 has been released. It may be unrelated, but mod_http2 fix was included and I checked it, but it did not improve. I took a wild guess and "LoadModule" mod_http2.so from Apache 2.4.54 from Apache 2.4.55 and the garbled characters were fixed. This was also improved in Apache 2.4.56. Naturally, I will not use it in a production environment, but I will report back. best regards,
Created attachment 39172 [details] Display of garbled characters.
Created attachment 39173 [details] Garbled characters are displayed correctly.
Hello. I confirmed that this problem was resolved with httpd2.4.58+nghttp2-1.57.0. Before: httpd2.4.57+nghttp2-1.55.1.png After : httpd2.4.58+nghttp2-1.57.0.png I am not sure what change in the httpd 2.4.58 version solved the problem, but I am reporting it just in case. best regards,
Thanks for reporting back!