Re: [squid-users] reverse proxy, 2 backends and vhost

From: jb <jbclot@dont-contact.us>
Date: Sat, 24 Jun 2006 23:54:17 +0200

Thanks.

Since my last email, I'm trying to make a redirector script to do the job,
and that seems to go.

#!/usr/bin/perl
$|=1;
while (<>) {
  s@http://storage.mysite.com@http://192.168.234.12@;
  s@http://.*.mysite.com@http://192.168.234.8@;
  print;
}

But a few questions about this script :

1. It is possible to make a "catch all" for all requests that doesn't match
storage.mysite.com ?

2. What is a overhead for the box with this script (Squid box with 250
req/s) ? I imagine that it is very small ?

Thanks really for your help !

JB

2006/6/24, Henrik Nordstrom <henrik@henriknordstrom.net>:
>
> lör 2006-06-24 klockan 17:04 +0200 skrev jb:
> > Thanks Henrik, but I have more than 100 000 subdomains on
> > 'mysite.com', and new sudomains are added each minute. I can't list
> > all domains and I don't want to edit /etc/host every time a change
> > occured. It seems to me that wildcard (*.mysite.com) doesn't work
> > in /etc/host .
>
> Recommended options:
>
> a) A private DNS with the real server IP mapping.
>
> b) Look into Squid-2.6 or later.
>
> Regards
> Henrik
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.3 (GNU/Linux)
>
> iD8DBQBEnalwB5pTNio2V7IRAgOsAJ0fOhwCxzf0q3HaYqkh8EhOkdhGmACdFXVr
> vOpGwtvFrQiAqt6UoWpIKsM=
> =778+
> -----END PGP SIGNATURE-----
>
>
>
Received on Sat Jun 24 2006 - 15:54:18 MDT

This archive was generated by hypermail pre-2.1.9 : Sat Jul 01 2006 - 12:00:02 MDT