Varnish is not working with error 400 Bad Request

Solution Verified - Updated -

Issue

  • Varnish service is up but is not working. From sudo varnishlog:

    *   << Request  >> 565789
    -   Begin          req 565788 rxreq
    -   Timestamp      Start: 1720502499.580800 0.000000 0.000000
    -   Timestamp      Req: 1720502499.580800 0.000000 0.000000
    -   HttpGarbage    "HEAD%00"
    -   RespProtocol   HTTP/1.1
    -   RespStatus     400
    -   RespReason     Bad Request
    -   ReqAcct        19 0 19 28 0 28
    -   End
    

Environment

  • Red Hat Enterprise Linux (RHEL)
  • Varnish

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content