Question concerning rewriting browser address bar
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 !
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.17 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> -----END PGP SIGNATURE-----
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
*Jonathan M. Hursey*
*Linux Systems Administrator*
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the varnish-misc