Re: regular expressions in URLs

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Tue, 03 Mar 1998 23:41:34 +0100

Fred Donck wrote:
>
> Experts,
>
> The company I work for makes distinction between internal and
> external webserver by their name. The internal URLs look like
> .*://sww.*company.* The rest is treated as external.
...
> Is there a way that squid can be configured to perform the same
> task without knowing the ip-addresses or hostnames of the
> 'internal' webservers ??

I don't think you can do this in 1.1.X, but you shure can in 1.2.

Example for Squid 1.2:

acl internal_servers url_regex ^[a-z]*://sww.*company.com
acl internal_servers_https url_regex ^sww.*company.com
always_direct internal_servers
always_direct internal_servers_https

---
Henrik Nordström
Sparetime Squid Hacker
Received on Tue Mar 03 1998 - 15:38:06 MST

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