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?

thanks a lot for your time & help

Greetings
Becki



Am 05.02.2020 um 18:13 schrieb Guillaume Quintard:
it's ready. And yes, I think you need to enable it on hitch too.
--
Guillaume Quintard


On Wed, Feb 5, 2020 at 9:03 AM Admin Beckspaced <[email protected] <mailto:[email protected]>> wrote:

    Hi Guillaume,

    Thanks for your reply ;)

    Is varnish http2 feature ready for a production server? Or is it
    still experimental?

    Would I need to setup Hitch for http2, too?

    # Enable to let clients negotiate HTTP/2 with ALPN. (default off)
    # alpn-protos = "http/2, http/1.1"

    thanks & greetings
    Becki


_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Reply via email to