its me again

Pavel Pragin ppragin at SolutionSet.com
Tue Apr 29 01:14:24 CEST 2008


Hello,

 

I am sorry to be so annoying but I have a deadline and time is ticking!

 

I am trying to redirect from one URL to another using the rules below
and I am not having any luck.

The original page is still coming up with no direction of any kind.
Maybe you can look at  the log 

and see why it's not working. It looks like " TxHeader  " is picking up
the new host it's supposed to go to,

but is not getting redirected. And I also notice some "404" errors. I
must be missing the URL part of the request.

I am not sure.

 

 

Thank You for your help ahead of time!

 

 

1)This is my Varnish configuration:

backend default {

        set backend.host = "127.0.0.1";

        set backend.port = "8081";

}

         sub vcl_recv {

 

 

if (req.http.host == "www.tibcocommunity.com") {

                set req.http.host = " www.tibcommunity.com ";

}

 

}

 

 

2) Varnishlog output when accessing the site:

[root at 165248-web1 varnish]# varnishlog

    0 CLI            Rd ping

    0 CLI            Wr 0 200 PONG 1209423896

    0 CLI            Rd ping

    0 CLI            Wr 0 200 PONG 1209423899

    0 CLI            Rd ping

    0 CLI            Wr 0 200 PONG 1209423902

    0 WorkThread     0x6450c110 start

   13 SessionOpen  c 69.28.122.122 31857

   13 ReqStart     c 69.28.122.122 31857 438756787

   13 RxRequest    c GET

   13 RxURL        c /

   13 RxProtocol   c HTTP/1.1

   13 RxHeader     c Host: www.tibcocommunity.com

   13 RxHeader     c User-Agent: Mozilla/5.0 (Windows; U; Windows NT
6.0; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14

   13 RxHeader     c Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plai
n;q=0.8,image/png,*/*;q=0.5

   13 RxHeader     c Accept-Language: en-us,en;q=0.5

   13 RxHeader     c Accept-Encoding: gzip,deflate

   13 RxHeader     c Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

   13 RxHeader     c Keep-Alive: 300

   13 RxHeader     c Connection: keep-alive

   13 VCL_call     c recv

   13 VCL_return   c lookup

   13 VCL_call     c hash

   13 VCL_return   c hash

   13 VCL_call     c miss

   13 VCL_return   c fetch

   16 BackendOpen  b default 127.0.0.1 33962 127.0.0.1 8081

   16 BackendXID   b 438756787

   13 Backend      c 16 default

   16 TxRequest    b GET

   16 TxURL        b /

   16 TxProtocol   b HTTP/1.1

   16 TxHeader     b User-Agent: Mozilla/5.0 (Windows; U; Windows NT
6.0; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14

   16 TxHeader     b Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plai
n;q=0.8,image/png,*/*;q=0.5

   16 TxHeader     b Accept-Language: en-us,en;q=0.5

   16 TxHeader     b Accept-Encoding: gzip,deflate

   16 TxHeader     b Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

   16 TxHeader     b host: www.tibcommunity.com

   16 TxHeader     b X-Varnish: 438756787

   16 TxHeader     b X-Forwarded-for: 69.28.122.122

   16 RxProtocol   b HTTP/1.1

   16 RxStatus     b 200

   16 RxResponse   b OK

   16 RxHeader     b Date: Mon, 28 Apr 2008 23:05:05 GMT

   16 RxHeader     b Server: Apache/2.0.52 (Red Hat)

   16 RxHeader     b Last-Modified: Mon, 28 Apr 2008 17:15:42 GMT

   16 RxHeader     b ETag: "a383dd-234-10bf8b80"

   16 RxHeader     b Accept-Ranges: bytes

   16 RxHeader     b Content-Length: 564

   16 RxHeader     b Connection: close

   16 RxHeader     b Content-Type: text/html; charset=UTF-8

   13 ObjProtocol  c HTTP/1.1

   13 ObjStatus    c 200

   13 ObjResponse  c OK

   13 ObjHeader    c Date: Mon, 28 Apr 2008 23:05:05 GMT

   13 ObjHeader    c Server: Apache/2.0.52 (Red Hat)

   13 ObjHeader    c Last-Modified: Mon, 28 Apr 2008 17:15:42 GMT

   13 ObjHeader    c ETag: "a383dd-234-10bf8b80"

   13 ObjHeader    c Content-Type: text/html; charset=UTF-8

   16 BackendClose b default

   13 TTL          c 438756787 RFC 120 1209423905 1209423905 0 0 0

   13 VCL_call     c fetch

   13 VCL_return   c insert

   13 Length       c 564

   13 VCL_call     c deliver

   13 VCL_return   c deliver

   13 TxProtocol   c HTTP/1.1

   13 TxStatus     c 200

   13 TxResponse   c OK

   13 TxHeader     c Server: Apache/2.0.52 (Red Hat)

   13 TxHeader     c Last-Modified: Mon, 28 Apr 2008 17:15:42 GMT

   13 TxHeader     c ETag: "a383dd-234-10bf8b80"

   13 TxHeader     c Content-Type: text/html; charset=UTF-8

   13 TxHeader     c Content-Length: 564

   13 TxHeader     c Date: Mon, 28 Apr 2008 23:05:05 GMT

   13 TxHeader     c X-Varnish: 438756787

   13 TxHeader     c Age: 0

   13 TxHeader     c Via: 1.1 varnish

   13 TxHeader     c Connection: keep-alive

   13 ReqEnd       c 438756787 1209423905.541680098 1209423905.542206049
0.003940105 0.000486851 0.000039101

    0 StatAddr       69.28.122.122 0 0 1 1 0 0 1 297 564

    0 CLI            Rd ping

    0 CLI            Wr 0 200 PONG 1209423905

   13 ReqStart     c 69.28.122.122 31857 438756788

   13 RxRequest    c GET

   13 RxURL        c /keycard.jpg

   13 RxProtocol   c HTTP/1.1

   13 RxHeader     c Host: www.tibcocommunity.com

   13 RxHeader     c User-Agent: Mozilla/5.0 (Windows; U; Windows NT
6.0; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14

   13 RxHeader     c Accept: image/png,*/*;q=0.5

   13 RxHeader     c Accept-Language: en-us,en;q=0.5

   13 RxHeader     c Accept-Encoding: gzip,deflate

   13 RxHeader     c Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

   13 RxHeader     c Keep-Alive: 300

   13 RxHeader     c Connection: keep-alive

   13 RxHeader     c Referer: http://www.tibcocommunity.com/

   13 VCL_call     c recv

   13 VCL_return   c lookup

   13 VCL_call     c hash

   13 VCL_return   c hash

   13 VCL_call     c miss

   13 VCL_return   c fetch

   16 BackendOpen  b default 127.0.0.1 33963 127.0.0.1 8081

   16 BackendXID   b 438756788

   13 Backend      c 16 default

   16 TxRequest    b GET

   16 TxURL        b /keycard.jpg

   16 TxProtocol   b HTTP/1.1

   16 TxHeader     b User-Agent: Mozilla/5.0 (Windows; U; Windows NT
6.0; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14

   16 TxHeader     b Accept: image/png,*/*;q=0.5

   16 TxHeader     b Accept-Language: en-us,en;q=0.5

   16 TxHeader     b Accept-Encoding: gzip,deflate

   16 TxHeader     b Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

   16 TxHeader     b Referer: http://www.tibcocommunity.com/

   16 TxHeader     b host: www.tibcommunity.com

   16 TxHeader     b X-Varnish: 438756788

   16 TxHeader     b X-Forwarded-for: 69.28.122.122

   16 RxProtocol   b HTTP/1.1

   16 RxStatus     b 200

   16 RxResponse   b OK

   16 RxHeader     b Date: Mon, 28 Apr 2008 23:05:05 GMT

   16 RxHeader     b Server: Apache/2.0.52 (Red Hat)

   16 RxHeader     b Last-Modified: Mon, 28 Apr 2008 17:15:42 GMT

   16 RxHeader     b ETag: "a383ef-aefa-10bf8b80"

   16 RxHeader     b Accept-Ranges: bytes

   16 RxHeader     b Content-Length: 44794

   16 RxHeader     b Connection: close

   16 RxHeader     b Content-Type: image/jpeg

   13 ObjProtocol  c HTTP/1.1

   13 ObjStatus    c 200

   13 ObjResponse  c OK

   13 ObjHeader    c Date: Mon, 28 Apr 2008 23:05:05 GMT

   13 ObjHeader    c Server: Apache/2.0.52 (Red Hat)

   13 ObjHeader    c Last-Modified: Mon, 28 Apr 2008 17:15:42 GMT

   13 ObjHeader    c ETag: "a383ef-aefa-10bf8b80"

   13 ObjHeader    c Content-Type: image/jpeg

   16 BackendClose b default

   13 TTL          c 438756788 RFC 120 1209423905 1209423905 0 0 0

   13 VCL_call     c fetch

   13 VCL_return   c insert

   13 Length       c 44794

   13 VCL_call     c deliver

   13 VCL_return   c deliver

   13 TxProtocol   c HTTP/1.1

   13 TxStatus     c 200

   13 TxResponse   c OK

   13 TxHeader     c Server: Apache/2.0.52 (Red Hat)

   13 TxHeader     c Last-Modified: Mon, 28 Apr 2008 17:15:42 GMT

   13 TxHeader     c ETag: "a383ef-aefa-10bf8b80"

   13 TxHeader     c Content-Type: image/jpeg

   13 TxHeader     c Content-Length: 44794

   13 TxHeader     c Date: Mon, 28 Apr 2008 23:05:05 GMT

   13 TxHeader     c X-Varnish: 438756788

   13 TxHeader     c Age: 0

   13 TxHeader     c Via: 1.1 varnish

   13 TxHeader     c Connection: keep-alive

   13 ReqEnd       c 438756788 1209423905.645124912 1209423906.011852026
0.102918863 0.000420094 0.366307020

    0 StatAddr       69.28.122.122 0 0 1 2 0 0 2 583 45358

   13 ReqStart     c 69.28.122.122 31857 438756789

   13 RxRequest    c GET

   13 RxURL        c /favicon.ico

   13 RxProtocol   c HTTP/1.1

   13 RxHeader     c Host: www.tibcocommunity.com

   13 RxHeader     c User-Agent: Mozilla/5.0 (Windows; U; Windows NT
6.0; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14

   13 RxHeader     c Accept: image/png,*/*;q=0.5

   13 RxHeader     c Accept-Language: en-us,en;q=0.5

   13 RxHeader     c Accept-Encoding: gzip,deflate

   13 RxHeader     c Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

   13 RxHeader     c Keep-Alive: 300

   13 RxHeader     c Connection: keep-alive

   13 VCL_call     c recv

   13 VCL_return   c lookup

   13 VCL_call     c hash

   13 VCL_return   c hash

   13 VCL_call     c miss

   13 VCL_return   c fetch

   16 BackendOpen  b default 127.0.0.1 33964 127.0.0.1 8081

   16 BackendXID   b 438756789

   13 Backend      c 16 default

   16 TxRequest    b GET

   16 TxURL        b /favicon.ico

   16 TxProtocol   b HTTP/1.1

   16 TxHeader     b User-Agent: Mozilla/5.0 (Windows; U; Windows NT
6.0; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14

   16 TxHeader     b Accept: image/png,*/*;q=0.5

   16 TxHeader     b Accept-Language: en-us,en;q=0.5

   16 TxHeader     b Accept-Encoding: gzip,deflate

   16 TxHeader     b Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7

   16 TxHeader     b host: www.tibcommunity.com

   16 TxHeader     b X-Varnish: 438756789

   16 TxHeader     b X-Forwarded-for: 69.28.122.122

   16 RxProtocol   b HTTP/1.1

   16 RxStatus     b 404

   16 RxResponse   b Not Found

   16 RxHeader     b Date: Mon, 28 Apr 2008 23:05:06 GMT

   16 RxHeader     b Server: Apache/2.0.52 (Red Hat)

   16 RxHeader     b Content-Length: 296

   16 RxHeader     b Connection: close

   16 RxHeader     b Content-Type: text/html; charset=iso-8859-1

   13 ObjProtocol  c HTTP/1.1

   13 ObjStatus    c 404

   13 ObjResponse  c Not Found

   13 ObjHeader    c Date: Mon, 28 Apr 2008 23:05:06 GMT

   13 ObjHeader    c Server: Apache/2.0.52 (Red Hat)

   13 ObjHeader    c Content-Type: text/html; charset=iso-8859-1

   16 BackendClose b default

   13 TTL          c 438756789 RFC 120 1209423906 1209423906 0 0 0

   13 VCL_call     c fetch

   13 VCL_return   c insert

   13 Length       c 296

   13 VCL_call     c deliver

   13 VCL_return   c deliver

   13 TxProtocol   c HTTP/1.1

   13 TxStatus     c 404

   13 TxResponse   c Not Found

   13 TxHeader     c Server: Apache/2.0.52 (Red Hat)

   13 TxHeader     c Content-Type: text/html; charset=iso-8859-1

   13 TxHeader     c Content-Length: 296

   13 TxHeader     c Date: Mon, 28 Apr 2008 23:05:06 GMT

   13 TxHeader     c X-Varnish: 438756789

   13 TxHeader     c Age: 0

   13 TxHeader     c Via: 1.1 varnish

   13 TxHeader     c Connection: keep-alive

   13 ReqEnd       c 438756789 1209423906.226600885 1209423906.226854086
0.214748859 0.000235081 0.000018120

    0 StatAddr       69.28.122.122 0 1 1 3 0 0 3 817 45654

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20080428/a2b52f30/attachment-0001.html>


More information about the varnish-misc mailing list