[squid-users] http host rewrite for origin (reverse proxy)

2016-03-08 Thread Tomas Mozes
Hello, I would like to create a file distribution cache with squid. There is an origin server that has some fixed limited capacity and I'd like to place a few servers close to clients, in a mesh configuration (reverse proxy). http_port 80 accel cache_peer IP_ORIGIN parent 80 0 default no-query no-

Re: [squid-users] http host rewrite for origin (reverse proxy)

2016-03-09 Thread Amos Jeffries
On 9/03/2016 4:32 a.m., Tomas Mozes wrote: > Hello, > I would like to create a file distribution cache with squid. There is an > origin server that has some fixed limited capacity and I'd like to place a > few servers close to clients, in a mesh configuration (reverse proxy). > > http_port 80 acce

Re: [squid-users] http host rewrite for origin (reverse proxy)

2016-03-09 Thread Tomas Mozes
On Wed, Mar 9, 2016 at 11:33 AM, Amos Jeffries wrote: > On 9/03/2016 4:32 a.m., Tomas Mozes wrote: > > Hello, > > I would like to create a file distribution cache with squid. There is an > > origin server that has some fixed limited capacity and I'd like to place > a > > few servers close to clie

Re: [squid-users] http host rewrite for origin (reverse proxy)

2016-03-09 Thread Antony Stone
On Wednesday 09 March 2016 at 15:29:48, Tomas Mozes wrote: > the origin server has multiple virtual hosts configured, so if it does not > receive the Host: header by which it is configured (like > storage.example.com), it will emit a 404. > > Currently, this does the following. The clients reques

Re: [squid-users] http host rewrite for origin (reverse proxy)

2016-03-09 Thread Amos Jeffries
On 10/03/2016 3:29 a.m., Tomas Mozes wrote: > > Hello Amos, > the origin server has multiple virtual hosts configured, so if it does not > receive the Host: header by which it is configured (like storage.example.com), > it will emit a 404. > > Currently, this does the following. The clients reque

Re: [squid-users] http host rewrite for origin (reverse proxy)

2016-03-09 Thread Amos Jeffries
On 10/03/2016 3:33 a.m., Antony Stone wrote: > On Wednesday 09 March 2016 at 15:29:48, Tomas Mozes wrote: > >> the origin server has multiple virtual hosts configured, so if it does not >> receive the Host: header by which it is configured (like >> storage.example.com), it will emit a 404. >> >> C

Re: [squid-users] http host rewrite for origin (reverse proxy)

2016-03-09 Thread Antony Stone
On Wednesday 09 March 2016 at 15:53:24, Amos Jeffries wrote: > On 10/03/2016 3:33 a.m., Antony Stone wrote: > > > > 2. Have you considered using Apache in reverse-proxy mode instead of > > Squid? It will happily re-write headers for you, and also supports load > > balancing around multiple server

Re: [squid-users] http host rewrite for origin (reverse proxy)

2016-03-09 Thread Tomas Mozes
On Wed, Mar 9, 2016 at 3:33 PM, Antony Stone < antony.st...@squid.open.source.it> wrote: > On Wednesday 09 March 2016 at 15:29:48, Tomas Mozes wrote: > > > the origin server has multiple virtual hosts configured, so if it does > not > > receive the Host: header by which it is configured (like > >

Re: [squid-users] http host rewrite for origin (reverse proxy)

2016-03-09 Thread Tomas Mozes
On Wed, Mar 9, 2016 at 3:43 PM, Amos Jeffries wrote: > On 10/03/2016 3:29 a.m., Tomas Mozes wrote: > > > > Hello Amos, > > the origin server has multiple virtual hosts configured, so if it does > not > > receive the Host: header by which it is configured (like > storage.example.com), > > it will