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 ---
/Henrik
Received on Thu Jan 27 2000 - 14:18:31 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:50:44 MST