Squid proxy MySQL authentication config -


i'm wondering know how configure squid server mysql authentication. i've found config example following:

auth_param basic program /usr/local/squid/libexec/squid_db_auth --user dbusername --password dbuserpassword --plaintext --persist auth_param basic children 5 auth_param basic realm web-proxy auth_param basic credentialsttl 1 minute auth_param basic casesensitive off 

http://linuxpoison.blogspot.com/2010/08/configuring-squid-server-to.html

and tested on localhost. worked well. in case, mysql server located on server. so, need specify "hostname" , "port" of mysql server.

can ?

thanks in advance.

as per code make changes in squid_db_auth example below,

my $dsn = "dbi:mysql:database=yourdbname;host=remotemysqlserverip"; 

add above line `squid_db_auth?. have tested same squid 3.1.10.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -