Question concerning rewriting browser address bar

Jonathan Hursey jonathan.hursey at adrevolution.com
Fri Jul 1 15:43:13 CEST 2011


if you're just doing it for one:

set req.http.host = regsub(req.http.host, "10.10.0.2", "www.domname.de");

if you want a universal catch all on that I'm not too sure. Sounds like
you'd need to resolve the name. or mod_modrewrite on the backend.

On Fri, Jul 1, 2011 at 7:05 AM, David Theis <david.theis at wetteronline.de>wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi everybody,
>
> i'm getting right to my question:
> if a user contacts one of our proxy servers using only the ip address
> i'd like to rewrite this ip address into a domain name, so that the user
> sees www.domainname.de instead of e.g 10.0.0.2 in his/her browser
> address bar. is this possible with varnishd ?
>
> We're using freebsd-7.4-RELEASE + varnish 2.1.5 !
>
> mfg
> David
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.17 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAk4NuA0ACgkQu/Z5Qo6690XlYACgj2or4DFsYSxMiAUPoTRjr9y0
> xWQAoJSW112qam6BUixSZjwEibsLMLY0
> =hw0m
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
>



-- 
*Jonathan M. Hursey*
*Linux Systems Administrator*

*
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20110701/995ad2ac/attachment-0003.html>


More information about the varnish-misc mailing list