Re: Add more ports on Web accelerator

From: C W CHAN <chiwai@dont-contact.us>
Date: Thu, 03 Feb 2000 18:05:20 +0800

Henrik Nordstrom wrote:

> C W CHAN wrote:
> >
> > Hi,
> >
> > I have already setup the "httpd_accel_uses_host_header" to on and added the resolve for
> > "Intra-adm" to "accelerator". In my case, I want to forward the port 80 to another web
> > server's adm port 8083 throught the accelerator.
> >
> > 80 8083
> > www.domain.edu.hk ----------> accelerator -----------> intra-adm.domain.edu.hk
> >
> > I have followed the contribution in the Squid src to create the redirector. Is there any
> > mistake in the redirector?
>
> I think the accelerator always adds the port to the URL, but I may be
> wrong.

>
> Try the
>
> > > > host1.domain.com ----------> internal-host1.domain.com
> > > > adm-host1.domain.com ----------> internal-host1.domain.com:8083
>
> Try the following:
>
> httpd_accel_host internal-host1.domain.com
> httpd_accel_port 80
> http_port 80
>
> --- redirector ---
> #!/usr/bin/perl -T -w -p
> BEGIN { $| = 1; }
> # Rewrite adm-host1.domain.com to internal-host1.domain.com:8083
> s%http://adm-host1.domain.com[:0-9]*%http://internal-host1.domain.com:8083%i;
> --- end of redirector ---
>

No, it doesn't work. It seems the accelerator only can use port 80 (e.g. httpd_accel_port 80).

>
> /Henrik
Received on Thu Feb 03 2000 - 03:15:34 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:50:56 MST