forward TLD to www

Tim Dunphy bluethundr at gmail.com
Tue Nov 25 17:27:26 CET 2014


Hi Tobias,

 Ok thanks and I did remove that section from my vcl.

 Now here's the latest from varnishlog:

 10 RxHeader     c Host: ref.mydomain.com
   10 RxHeader     c X-Forwarded-For: 91.207.9.170
   10 TxHeader     c Server: Varnish
   10 TxHeader     c Location: http://www.ref.mydomain.com

Ok, so it looks like the forwarding is working! Which is cool enough in
itself. However when I load the domain in a browser the change doesn't
happen there. I've tried loading the ref url without the www in chrome,
safari and firefox (I'm on a mac).

Any ideas on what could be going on with that?

Thanks
Tim

On Tue, Nov 25, 2014 at 6:28 AM, Norberto Meijome <numard at gmail.com> wrote:

> +1 - FWIW, I think ( though can't confirm right now) you can raise the
> error regardless of caching in _recv... Of course, the flow must get to
> your bit of code ( .I.e., if you have a return pass or return lookup it may
> not get to your error 750)
> On 25/11/2014 4:57 am, "Tobias Eichelbrönner" <
> tobias.eichelbroenner at lamp-solutions.de> wrote:
>
>> Hi Tim,
>>
>> you log is telling you are accessing www.ref.mydomain.com
>>
>> >    11 TxHeader     b Host: www.ref.mydomain.com
>>
>> is there any chance, you still have the snipped
>>
>>    if (req.http.host ~ "^ref\.mydomain\.com$") {
>>        set req.http.host = "www.ref.mydomain.com";
>>     }
>>
>> active? If so, delete it.
>>
>> Sincerely,
>>
>> Tobias
>>
>> --
>> LAMP solutions GmbH
>> Gostenhofer Hauptstrasse 35
>> 90443 Nuernberg
>>
>> Amtsgericht Nuernberg: HRB 22366
>> Geschaeftsfuehrer: Heiko Schubert
>>
>> Es gelten unsere allgemeinen Geschaeftsbedingungen.
>> http://www.lamp-solutions.de/agbs/
>>
>> Telefon      : 0911 / 376 516 0
>> Fax          : 0911 / 376 516 11
>> E-Mail       : support at lamp-solutions.de
>> Web          : www.lamp-solutions.de
>> Facebook     : http://www.facebook.com/LAMPsolutions
>> Twitter      : http://twitter.com/#!/lampsolutions
>>
>> _______________________________________________
>> varnish-misc mailing list
>> varnish-misc at varnish-cache.org
>> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>>
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>



-- 
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20141125/9fac7299/attachment.html>


More information about the varnish-misc mailing list