Mailing List Archive

#34: req.http.host -> req.host
#34: req.http.host -> req.host
-------------------------+--------------------------------------------------
Reporter: des | Owner: des
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: varnishd | Version: trunk
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
[from http://projects.linpro.no/pipermail/varnish-dev/2006-
August/000368.html]

What I want to do in the long run is:

* define HTTP_HDR_HOST and the corresponding req.host variable to be used
instead of req.http.host.
* add code to cache_http.c to dissect and normalize the request URL, and
set the initial value of req.host based on the host part of the request
URL and / or the Host: header
* make req.host and req.url writable so vcl_recv can perform further
normalization if needed (e.g. rewrite vg.no to www.vg.no)

--
Ticket URL: <http://varnish.projects.linpro.no/ticket/34>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator
#34: req.http.host -> req.host [ In reply to ]
#34: req.http.host -> req.host
-------------------------+--------------------------------------------------
Reporter: des | Owner: des
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: varnishd | Version: trunk
Severity: normal | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Comment (by phk):

As I said in email already, I disagree with this direction.

Host is a HTTP header, it is not a HTTP field, and it complicates the code
for us if we try to pretend otherwise.

Furthermore, I have yet to see a single request with the hostname in the
URL field.

--
Ticket URL: <http://varnish.projects.linpro.no/ticket/34>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator