Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Varnish: Bugs

#1078: req.http.host and port.

 

 

Varnish bugs RSS feed   Index | Next | Previous | View Threaded


varnish-bugs at varnish-cache

Dec 27, 2011, 4:25 AM

Post #1 of 3 (378 views)
Permalink
#1078: req.http.host and port.

#1078: req.http.host and port.
-------------------------+--------------------------------------------------
Reporter: TychoCelchu | Type: enhancement
Status: new | Priority: normal
Milestone: | Component: varnishd
Version: 3.0.2 | Severity: normal
Keywords: |
-------------------------+--------------------------------------------------
Situation:

2 instances of varnish 3.0.2 on the same server, one on the port 80 the
second on the port 81. I had a problem with req.http.host in my vcl_fetch.
It doesn't work like that:

req.http.host ~ "(^|\.)mydomain\.com$"

I have to put the port in my condition, like that:

req.http.host ~ "(^|\.)mydomain\.com\:81$"

if i want it to work.

I don't know if it is a normal way for you but i don't think so. The
target port shouldn't be a part of the http.host in my mind.

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1078>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

_______________________________________________
varnish-bugs mailing list
varnish-bugs [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs


varnish-bugs at varnish-cache

Dec 29, 2011, 12:00 PM

Post #2 of 3 (373 views)
Permalink
Re: #1078: req.http.host and port. [In reply to]

#1078: req.http.host and port.
-------------------------+--------------------------------------------------
Reporter: TychoCelchu | Type: enhancement
Status: new | Priority: normal
Milestone: | Component: varnishd
Version: 3.0.2 | Severity: normal
Keywords: |
-------------------------+--------------------------------------------------

Comment(by nav):

That is normal behaviour for HTTP Host header, see
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.23

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1078#comment:1>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

_______________________________________________
varnish-bugs mailing list
varnish-bugs [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs


varnish-bugs at varnish-cache

Jan 2, 2012, 3:20 AM

Post #3 of 3 (373 views)
Permalink
Re: #1078: req.http.host and port. [In reply to]

#1078: req.http.host and port.
--------------------------+-------------------------------------------------
Reporter: TychoCelchu | Type: enhancement
Status: closed | Priority: normal
Milestone: | Component: varnishd
Version: 3.0.2 | Severity: normal
Resolution: wontfix | Keywords:
--------------------------+-------------------------------------------------
Changes (by kristian):

* status: new => closed
* resolution: => wontfix


Comment:

Req.http.host is provided by a client.

Use server.port for Varnish' idea of what port is in use.

Feel free to tinker with req.http.host yourself, but it shouldn't be done
by magic on our end.

If the port is in your way: set req.http.host =
regsub(req.http.host,":.*$",""); or similar.

--
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1078#comment:2>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator

_______________________________________________
varnish-bugs mailing list
varnish-bugs [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-bugs

Varnish bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.