Re: [squid-users] allow subdomain

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Thu, 17 Jun 2010 00:20:38 +1200

Leonardo Carneiro - Veltrac wrote:
> Hi everyone. I want to allow access to a subdomain ( folha.uol.com.br )
> while keeping the main domain blocked ( uol.com.br ).
>
> So far, so good. I'd added the subdomain in a allowed access list before
> blocking the main domain in another acl.
>
> But there is the issue: all images, flashs and all the sparkling stuff
> showed in the subdomain page is actually hosted in the main domain.
> While I can open the page, all the media on the page cannot be
> displayed. There is a simple solution for this or do i have to create a
> allow acl containing the media of the main domain?

Yes. The solution is another ACL for the media.

Or possibly a little easier an ACL specifically denying only the pages
of the main domain.
For example;
  acl mainpages urlpath_regex -i \.(/|html)(\?.*)$

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.4
Received on Wed Jun 16 2010 - 12:20:46 MDT

This archive was generated by hypermail 2.2.0 : Wed Jun 16 2010 - 12:00:03 MDT