I tried this, but it gives me a white page, maybe because this + req.url do so that adds unneeded part to the subdomain to where redirects, but and without it it does not work again and the url is loaded from the varnish not from the nginx. I tried also with nginx as a backend, but without result Here is the log:

0 Debug - "VCL_error(750, http://dowmload.thedomain.com/disclib/download/)"
   15 SessionOpen  c MYIP 60312 91.215.216.24:80
   15 ReqStart     c MYIP 60312 2028169630
   15 RxRequest    c GET
   15 RxURL        c /disclib/download/
   15 RxProtocol   c HTTP/1.1
   15 RxHeader     c Host: thedomain.com
15 RxHeader c User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:44.0) Gecko/20100101 Firefox/44.0 15 RxHeader c Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
   15 RxHeader     c Accept-Language: en-US,en;q=0.5
   15 RxHeader     c Accept-Encoding: gzip, deflate
15 RxHeader c Cookie: _ga=GA1.2.131807001.1456298754; __utma=234754435.782204057.1456320697.1456320697.1456325696.2; __utmz=234754435.1456320697.1.1.utmccn=(dire$
   15 RxHeader     c Connection: keep-alive
   15 RxHeader     c Cache-Control: max-age=0
   15 VCL_call     c recv error
   15 VCL_call     c hash
   15 Hash         c /disclib/download/
   15 Hash         c thedomain.com
   15 VCL_return   c hash
   15 VCL_call     c error deliver
   15 VCL_call     c deliver deliver
   15 TxProtocol   c HTTP/1.1
   15 TxStatus     c 750
   15 TxResponse   c http://dowmload.thedomain.com/disclib/download/
   15 TxHeader     c Server: Varnish
   15 TxHeader     c Accept-Ranges: bytes
   15 TxHeader     c Date: Sun, 28 Feb 2016 16:57:05 GMT
   15 TxHeader     c Connection: close
   15 Length       c 0
15 ReqEnd c 2028169630 1456678625.208791018 1456678625.208868742 0.000070572 0.000038147 0.000039577
   15 SessionClose c error
   15 StatSess     c  MYIP  60312 0 1 1 0 0 0 162 0
   14 SessionClose - timeout
   14 StatSess     - 66.249.64.41 36669 0 1 1 0 1 1 235 61420
0 Debug - "VCL_error(750, http://dowmload.thedomain.com/disclib/download/)"
   14 SessionOpen  c MYIP 60314 91.215.216.24:80
   14 ReqStart     c MYIP 60314 2028169631
   14 RxRequest    c GET
   14 RxURL        c /disclib/download/
   14 RxProtocol   c HTTP/1.1
   14 RxHeader     c Host: thedomain.com
14 RxHeader c User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:44.0) Gecko/20100101 Firefox/44.0 14 RxHeader c Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8


On 02/28/2016 06:48 PM, Brad Tarver wrote:
|if (obj.status == 750) { set obj.http.Location = obj.response; set obj.status = 301; return(deliver); }|

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

Reply via email to