Re: [squid-users] Subdirectory in reverse proxy

From: Kinkie <gkinkie_at_gmail.com>
Date: Fri, 25 Oct 2013 19:49:29 +0200

On Fri, Oct 25, 2013 at 4:12 PM, dweimer <dweimer_at_dweimer.net> wrote:
> On 10/25/2013 7:32 am, Martin Rieß wrote:
>>
>> Hi everyone.
>>
>> I’m trying to set up squid3 on pfSense to work as reverse proxy.
>> I plan to have several servers behind squid/pfsense and I want to set up
>> the
>> reverse proxy the following way:
>>
>> http://FQDN/owa --> http://ms-server/owa
>> http://FQDN/webshop -> http://ubuntu-server/webshop
>> http://FQDN/website -> http://ubuntu-server/
>>
>> Can someone please tell me how to set the different routes to the
>> subdirectories, either in the pfsense webinterface or directly in
>> squid.conf?
>> I know that with owa I will have to deal with https and other details, but
>> first I have to solve the topic of these subdirectories.
>>
>> Thank you in advance,
>>
>> Martin
>
>
> You are needing to look for "url_rewrite_program", and several related
> directives within squid, not sure if they have added that into the current
> pfSense package or not. It could of course be manually done, but I would
> search for rewrite on the web configuration to see if it has been added, as
> it would make sense for a firewall product setup with reverse proxy support
> to include that feature. The only pfSense systems I have are running on
> Alix boards, which lack the memory and CPU power to handle Squid so I
> haven't tested out the Squid package, on it myself.

If you don't need to rewrite the urlpath, then a carefully crafted
series of cache_peer_access lines should be enough, without the need
to code a custom rewriter. It should also be faster :)

-- 
    /kinkie
Received on Fri Oct 25 2013 - 17:49:37 MDT

This archive was generated by hypermail 2.2.0 : Fri Oct 25 2013 - 12:00:26 MDT