[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-httpd-users
Subject: Aw: Re: [users@httpd] H2Upgrade treated globally instead of locally
From: "Robert Ehrenleitner" <rexkogitans () gmx ! at>
Date: 2019-03-11 13:41:46
Message-ID: trinity-5e8dc888-9738-424b-a449-5864411f35d9-1552311706325 () 3c-app-gmx-bs39
[Download RAW message or body]
<html><head></head><body><div style="font-family: Verdana;font-size: \
12.0px;"><div> <div>
<div>Thanks for the quick and helpful response,</div>
<div>Kind regards,</div>
<div>rexkogitans</div>
<div> </div>
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; \
border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; \
-webkit-line-break: after-white-space;"> <div style="margin:0 0 10px \
0;"><b>Gesendet:</b> Montag, 11. März 2019 um 11:25 Uhr<br/> \
<b>Von:</b> "Stefan Eissing" <stefan.eissing@greenbytes.de><br/> \
<b>An:</b> users@httpd.apache.org<br/> <b>Betreff:</b> Re: [users@httpd] \
H2Upgrade treated globally instead of locally</div>
<div name="quoted-content"><br/>
<br/>
> Am 10.03.2019 um 10:51 schrieb rexkogitans@gmx.at:<br/>
><br/>
> Hello,<br/>
><br/>
><br/>
> I already posted this at Stack Exchange here:<br/>
><br/>
> <a href="https://serverfault.com/questions/957276/why-is-a-directive-within-a-virtual-host-considered-global" \
target="_blank">https://serverfault.com/questions/957276/why-is-a-directive-within-a-virtual-host-considered-global</a><br/>
><br/>
><br/>
> For sake of persistence, I quote the essential of the question here.<br/>
><br/>
> The documentation of the H2Upgrade directive in the httpd documentation about \
HTTP/2 says that<br/> ><br/>
> This should be used inside a <VirtualHost> section to enable Upgrades to \
HTTP/2 for that virtual host.<br/> ><br/>
> I have two virtual hosts, both listening on plain HTTP only. This is my httpd \
config:<br/> ><br/>
> <VirtualHost *:80><br/>
> Protocols h2c http/1.1 http/1.0<br/>
> H2Upgrade on<br/>
> DocumentRoot /var/www/<br/>
> </VirtualHost><br/>
><br/>
> <VirtualHost *:80><br/>
> Protocols h2c http/1.1 http/1.0<br/>
> H2Upgrade off<br/>
> ServerName test.mydomain.loc<br/>
> DocumentRoot /var/www/apps<br/>
> </VirtualHost><br/>
><br/>
> Tests with curl show that with varying the host name, the correct virtual host \
is chosen (it is easy to tell them apart, as they have different document root \
directories).<br/> ><br/>
> curl --http2 -vLo- '<a href="http://test.mydomain.loc/test.html'" \
target="_blank">http://test.mydomain.loc/test.html'</a><br/> ><br/>
> However, only the directive H2Upgrade in the first (default) virtual host is \
used for both virtual hosts. In the second virutal host, the directive is completely \
useless.<br/> ><br/>
><br/>
> This is a Debian Linux 9.8 with httpd 2.4.25, so it is not the newest version. \
Since I do not have time to compile httpd on my own, I want to ask if:<br/> <br/>
Time. Who has it?<br/>
<br/>
> * This issue is known and may be already fixed in a newer version?<br/>
<br/>
There is a test for this in the mod-h2 testsuite and it works on 2.4.38, the current \
version. I do not recollect when this was fixed.<br/> <br/>
> * Or if this issue is not known, and it is a new bug I found?<br/>
><br/>
> * Or if this is not a bug, but then there is something I really do not \
understand. Maybe someone can tell me what I did wrong.<br/> <br/>
It seems to have been a bug. Your understanding is correct.<br/>
<br/>
Btw. in the upcoming version, H2Upgrade can also be specified in directories and \
locations.<br/> <br/>
-Stefan<br/>
<br/>
<br/>
---------------------------------------------------------------------<br/>
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org<br/>
For additional commands, e-mail: users-help@httpd.apache.org<br/>
</div>
</div>
</div>
</div></div></body></html>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic