Search squid archive

Re: configuring splash page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Oct 24, 2011 at 6:37 AM, Amos Jeffries wrote:

> The v1.2 helper with sync fixes has not made it to a 3.2 snapshot yet,
> sorry. The 3.2 current snapshot only has the v1.1 helper crash fixes.
>
> That snapshot will need this on top:
> http://www.squid-cache.org/Versions/v3/3.2/changesets/squid-3.2-11387.patch
>
> and probably this as well:
> http://www.squid-cache.org/Versions/v3/3.2/changesets/squid-3.2-11386.patch

Ok, I applied these two patches.

>>
>> BTW, how can I find out what version is the session helper?
>> Cheers.
>
> ext_session_acl -v  should tell you.

It doesn't work, I already tried it.
/usr/local/squid/libexec/ext_session_acl -v
/usr/local/squid/libexec/ext_session_acl: invalid option -- 'v'


@Andrew, I guess I managed to apply the needed patches.
Now I am getting this behavior:
* I first GET check.html (note that I have ttl=2)
** I am able to make just ONE request which loads up fine.
*** Any other request just redirects to splash.html, unless I access
again check.html, which allows me to request just one link.

10 OK message="Welcome"
10 192.168.235.136
10 OK

Is this a configuration problem?
I am following your config example
http://wiki.squid-cache.org/ConfigExamples/Portal/Splash for Squid
Configuration File - Active Mode, for the exact same reasons you
stated there.

BTW, did you leave  "/var/lib/squid/session/" intentionally or was it
supposed to be /var/lib/squid/session/session.db?
# Set up the normal session helper. Mind the wrap - this is one line:
external_acl_type session_active_def concurrency=100 ttl=3 %SRC
/usr/lib/squid3/ext_session_acl -a -T 10800 -b /var/lib/squid/session/

Again, this is my config:
external_acl_type session_LOGIN_master concurrency=100 ttl=2 %SRC
/usr/local/squid/libexec/ext_session_acl -T 30 -b
/usr/local/squid//lib/session.db -a
acl session_LOGIN external session_LOGIN_master LOGIN

external_acl_type session_ACTIVE_master concurrency=100 ttl=2 %SRC
/usr/local/squid/libexec/ext_session_acl -T 30 -b
/usr/local/squid/lib/session.db -a
acl session_is_ACTIVE external session_ACTIVE_master

acl clicked_login_url url_regex -i http://192.168.235.136/check.html
http_access allow clicked_login_url session_LOGIN

http_access deny !session_is_ACTIVE
deny_info http://192.168.235.136/splash.html session_is_ACTIVE

Can you please confirm that this type of config is working with you,
so I can be sure that at least this isn't the problem.

Thank you.



[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux