[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>&nbsp; <div>
<div>Thanks for the quick and helpful response,</div>

<div>Kind regards,</div>

<div>rexkogitans</div>

<div>&nbsp;</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>&nbsp;Montag, 11. M&auml;rz 2019 um 11:25 Uhr<br/> \
<b>Von:</b>&nbsp;&quot;Stefan Eissing&quot; &lt;stefan.eissing@greenbytes.de&gt;<br/> \
<b>An:</b>&nbsp;users@httpd.apache.org<br/> <b>Betreff:</b>&nbsp;Re: [users@httpd] \
H2Upgrade treated globally instead of locally</div>

<div name="quoted-content"><br/>
<br/>
&gt; Am 10.03.2019 um 10:51 schrieb rexkogitans@gmx.at:<br/>
&gt;<br/>
&gt; Hello,<br/>
&gt;<br/>
&gt;<br/>
&gt; I already posted this at Stack Exchange here:<br/>
&gt;<br/>
&gt; <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/>
 &gt;<br/>
&gt;<br/>
&gt; For sake of persistence, I quote the essential of the question here.<br/>
&gt;<br/>
&gt; The documentation of the H2Upgrade directive in the httpd documentation about \
HTTP/2 says that<br/> &gt;<br/>
&gt; This should be used inside a &lt;VirtualHost&gt; section to enable Upgrades to \
HTTP/2 for that virtual host.<br/> &gt;<br/>
&gt; I have two virtual hosts, both listening on plain HTTP only. This is my httpd \
config:<br/> &gt;<br/>
&gt; &lt;VirtualHost *:80&gt;<br/>
&gt; Protocols h2c http/1.1 http/1.0<br/>
&gt; H2Upgrade on<br/>
&gt; DocumentRoot /var/www/<br/>
&gt; &lt;/VirtualHost&gt;<br/>
&gt;<br/>
&gt; &lt;VirtualHost *:80&gt;<br/>
&gt; Protocols h2c http/1.1 http/1.0<br/>
&gt; H2Upgrade off<br/>
&gt; ServerName test.mydomain.loc<br/>
&gt; DocumentRoot /var/www/apps<br/>
&gt; &lt;/VirtualHost&gt;<br/>
&gt;<br/>
&gt; 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/> &gt;<br/>
&gt; curl --http2 -vLo- &#39;<a href="http://test.mydomain.loc/test.html&#39;" \
target="_blank">http://test.mydomain.loc/test.html&#39;</a><br/> &gt;<br/>
&gt; 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/> &gt;<br/>
&gt;<br/>
&gt; 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/>
&gt; * 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/>
&gt; * Or if this issue is not known, and it is a new bug I found?<br/>
&gt;<br/>
&gt; * 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/>
&nbsp;</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