Varnish 6.3, Hitch & HTTP/2
Dridi Boukelmoune
dridi at varni.sh
Thu Feb 6 11:11:57 UTC 2020
On Thu, Feb 6, 2020 at 9:50 AM Admin Beckspaced <admin at beckspaced.com> wrote:
>
> Hello Guillaume,
>
> thanks again for your reply
>
> ok ... did enable hitch ALPN
>
> alpn-protos = "http/2, http/1.1"
>
> did enable http/2 in varnish.
>
> I'm running opensuse and it has its configuration in /etc/sysnconfig/varnish
>
> VARNISHD_PARAMS="-j unix,user=varnish -f /etc/varnish/main.vcl -a :80 -a 127.0.0.1:6086,PROXY -T localhost:6082 -s default=malloc,2G -s static=file,/var/cache/varnish,5G -p feature=+http2"
>
> which then is loaded via systemd service
>
> [Service]
> EnvironmentFile=/etc/sysconfig/varnish
> PIDFile=/var/run/varnishd.pid
> ExecStart=/usr/sbin/varnishd -P /var/run/varnishd.pid -F $VARNISHD_PARAMS
>
> restart hitch & varnish
>
> if I look in the logs all looks fine
>
> Feb 06 10:07:12 cx40 systemd[1]: Starting hitch...
> Feb 06 10:07:12 cx40 hitch[1238]: Trying to initialize SSL contexts with your certificates
> Feb 06 10:07:12 cx40 hitch[1238]: hitch configuration looks ok.
> Feb 06 10:07:13 cx40 systemd[1]: Started hitch.
>
> Feb 06 10:07:14 cx40 varnishd[1233]: Debug: Version: varnish-6.3.0 revision 0c9a93f1b2c6de49b8c6ec8cefd9d2be50041d79
> Feb 06 10:07:14 cx40 varnishd[1233]: Debug: Platform: Linux,4.12.14-lp151.28.36-default,x86_64,-junix,-smalloc,-sfile,-sdefault,-hcritbit
> Feb 06 10:07:14 cx40 varnishd[1233]: Version: varnish-6.3.0 revision 0c9a93f1b2c6de49b8c6ec8cefd9d2be50041d79
> Feb 06 10:07:14 cx40 varnishd[1233]: Platform: Linux,4.12.14-lp151.28.36-default,x86_64,-junix,-smalloc,-sfile,-sdefault,-hcritbit
> Feb 06 10:07:14 cx40 varnishd[1233]: Debug: Child (1619) Started
> Feb 06 10:07:14 cx40 varnishd[1233]: Child (1619) Started
> Feb 06 10:07:14 cx40 varnishd[1233]: Info: Child (1619) said Child starts
> Feb 06 10:07:14 cx40 varnishd[1233]: Info: Child (1619) said SMF.static mmap'ed 5368709120 bytes of 5368709120
> Feb 06 10:07:14 cx40 varnishd[1233]: Child (1619) said Child starts
> Feb 06 10:07:14 cx40 varnishd[1233]: Child (1619) said SMF.static mmap'ed 5368709120 bytes of 5368709120
> Feb 06 10:07:14 cx40 varnishncsa[742]: .................
>
> if i then check if the website supports http/2
>
> my website is https://kohphangannews.org/
>
> https://tools.keycdn.com/http2-test
>
> https://http2.pro/check?url=https%3A//kohphangannews.org/
>
> it says that http/2 is not supported ;(
>
> what am I missing?
It's called h2 for ALPN, and with that I think you should be good.
Dridi
More information about the varnish-misc
mailing list