You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2020/05/11 14:13:20 UTC
[Bug 64421] New: Proxypass H2 with file.ext ERR_INVALID_RESPONSE
https://bz.apache.org/bugzilla/show_bug.cgi?id=64421
Bug ID: 64421
Summary: Proxypass H2 with file.ext ERR_INVALID_RESPONSE
Product: Apache httpd-2
Version: 2.4.37
Hardware: PC
OS: Linux
Status: NEW
Severity: major
Priority: P2
Component: mod_proxy_http2
Assignee: bugs@httpd.apache.org
Reporter: willouuu@gmail.com
Target Milestone: ---
Created attachment 37225
--> https://bz.apache.org/bugzilla/attachment.cgi?id=37225&action=edit
screen chromium
hello
Any file called (existing or not) behind an h2 proxypass returns the error
"ERR_INVALID_RESPONSE"
I have 2 VM Centos 8 Apache 2.4.37
The first wwwtest.domain.fr is just a proxypass,
the second www1test.domain.fr it's a Wordpress php7.4
Proxy conf :
<VirtualHost *:443>
ServerName wwwtest.domain.fr
ServerAlias domain.fr
ServerAlias proxy1test
ServerAlias proxy1test.domain.fr
ServerAdmin webadmin@domain.fr
ServerAlias domain.fr
ErrorLog /var/log/httpd/www_error.log
LogLevel warn
CustomLog /var/log/httpd/www_access.log combined
RewriteEngine on
Protocols h2 h2c http/1.1
SSLProxyEngine On
SSLEngine on
ProxyPass / h2://www1test.domain.fr/
ProxyPassreverse / https://www1test.domain.fr/
</VirtualHost>
With "curl wwwtest.domain.fr/test.zip" "curl wwwtest.domain.fr/toto.pdf" etc
... it's work ( obtain 404 error ) but with chrome & firefox i have
ERR_INVALID_RESPONSE
If into the proxypass , i replace h2://www1test.domain.fr/ to
https://www1test.domain.fr/ it's work !
I guess a problem with mimes
Thank's in advance !
Will
--
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
[Bug 64421] Proxypass H2 with file.ext ERR_INVALID_RESPONSE
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64421
--- Comment #2 from LaWix <wi...@gmail.com> ---
Created attachment 37228
--> https://bz.apache.org/bugzilla/attachment.cgi?id=37228&action=edit
apache log with debug
--
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
[Bug 64421] Proxypass H2 with file.ext ERR_INVALID_RESPONSE
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64421
granddruid@hotmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
--- Comment #10 from granddruid@hotmail.com ---
I saw that page before and never realized the ProxyPassReverse was 'https://'
and not 'h2://'. However changing ProxyPassReverse does not resolve the issue.
For this URL: /h2/test.xlsx
This gives the wrong Content-Type on the response:
ProxyPass /h2 h2://tomcat.server:8081/doc
ProxyPassReverse /h2 https://tomcat.server:8081/doc
This gives the correct Content-Type on the response:
RemoveType .xlsx
ProxyPass /h2 h2://tomcat.server:8081/doc
ProxyPassReverse /h2 https://tomcat.server:8081/doc
This also gives the correct Content-Type, but does not use HTTP/2:
ProxyPass /h2 https://tomcat.server:8081/doc
ProxyPassReverse /h2 https://tomcat.server:8081/doc
It does not have to be .xlsx the same applies to other well known extensions.
--
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
[Bug 64421] Proxypass H2 with file.ext ERR_INVALID_RESPONSE
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64421
Stefan Eissing <ic...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--- Comment #9 from Stefan Eissing <ic...@apache.org> ---
Trying to understand the issue here. Are you saying that when you configure the
proxypassreverse as described in the documentation
(https://httpd.apache.org/docs/2.4/mod/mod_proxy_http2.html), the error goes
away?
Do we need to be more explicit in the documenation about this?
--
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
[Bug 64421] Proxypass H2 with file.ext ERR_INVALID_RESPONSE
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64421
--- Comment #7 from LaWix <wi...@gmail.com> ---
Created attachment 37238
--> https://bz.apache.org/bugzilla/attachment.cgi?id=37238&action=edit
apache log debug
Hello Stefan
Here is the log
We use default packages on CentOs8 and for production use, we need to use
packages updated by the distribution
Thanks redhat for the delay :'(
Will
--
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
[Bug 64421] Proxypass H2 with file.ext ERR_INVALID_RESPONSE
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64421
--- Comment #4 from LaWix <wi...@gmail.com> ---
Created attachment 37230
--> https://bz.apache.org/bugzilla/attachment.cgi?id=37230&action=edit
apache log with debug / get page with curl
--
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
[Bug 64421] Proxypass H2 with file.ext ERR_INVALID_RESPONSE
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64421
Stefan Eissing <st...@eissing.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--- Comment #1 from Stefan Eissing <st...@eissing.org> ---
Hi Will,
seems there is an incompatibility in how mod_proxy_http2 handles your setup.
Could you provide server logs and curl verbose output? For the server log, a
LogLevel proxy:trace2
LogLevel proxy_http2:trace2
would tell us more of what is going on. Thank you.
--
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
[Bug 64421] Proxypass H2 with file.ext ERR_INVALID_RESPONSE
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64421
--- Comment #5 from LaWix <wi...@gmail.com> ---
Hello,
Thank you for your requests, here are the files.
I'm at your disposal for other tests
Will
--
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
[Bug 64421] Proxypass H2 with file.ext ERR_INVALID_RESPONSE
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64421
--- Comment #6 from Stefan Eissing <st...@eissing.org> ---
Thanks for the logs.
It looks to me as if both requests (curl and chrome) were handled without error
by mod_proxy_http2. So, we would need to look at the connection between the
proxying Apache and Chrome to see if there is anything amiss.
Would you run the chrome request again with:
LogLevel http2:trace2
LogLevel proxy:trace2
LogLevel proxy_http2:trace2
and add the log here? thanks.
Also, I noticed that you are running an older version of mod_proxy_http2. The
module had some significant changes last year.
What Apache from which distro are you running? Are you able to build a newer
version and test that?
cheers, Stefan
--
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
[Bug 64421] Proxypass H2 with file.ext ERR_INVALID_RESPONSE
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64421
granddruid@hotmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
--- Comment #8 from granddruid@hotmail.com ---
I have the same issue, and I can reproduce it in a non-production environment.
The test server is Fedora 35 running Apache HTTP 2.4.53. The Apache HTTP
server is acting a reverse proxy for Apache Tomcat server (version 9.0.59)
running on the same system. Though I do not think the server behind the proxy
matters as long as it supports HTTP/2.
With the following options in the VirtualHost
Protocols h2 http/1.1
ProxyPass /h2 h2://tomcat.server:8081/doc
ProxyPassReverse /h2 h2://tomcat.server:8081/doc
Go to link url that with a well known extension such as /h2/test.xlsx, and that
URL results in an error status such as 404 or 401. The Tomcat server will
return a Content-Type of 'text/html' and an error page in the body. The Apache
proxy will change the Content-Type to
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' the html
body of the request is still passed on the browser. This results in a
ERR_INVALID_RESPONSE from Chrome. Firefox behaives as if no body was sent, and
displays whatever content was previous in the tab.
If you change the ProxyPass lines to https:// instead of h2://, the error page
displays as expected.
If you disable mod_mime, the error page displays as expected.
If add "RemoveType .xlsx", the error page displays as expected for urls with a
.xlsx extension.
--
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
[Bug 64421] Proxypass H2 with file.ext ERR_INVALID_RESPONSE
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64421
LaWix <wi...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #37228|apache log with debug |apache log with debug / get
description| |page with chrome
--
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
[Bug 64421] Proxypass H2 with file.ext ERR_INVALID_RESPONSE
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64421
--- Comment #3 from LaWix <wi...@gmail.com> ---
Created attachment 37229
--> https://bz.apache.org/bugzilla/attachment.cgi?id=37229&action=edit
curl output
is simple a 404 error generate by wordpress
I didn't put this file it in full
--
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
[Bug 64421] Proxypass H2 with file.ext ERR_INVALID_RESPONSE
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64421
Bjoern Voigt <bj...@arcor.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bjoernv@arcor.de
--
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