我想知道如何配置带有MySQL身份验证的squid服务器。我在下面找到了一个配置示例:
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 offhttp://linuxpoison.blogspot.com/2010/08/configuring-squid-server-to.html
并在本地主机上进行了测试。这样做效果很好。但在我的例子中,MySQL服务器位于另一台服务器上。因此,我需要指定MySQL服务器的“主机名”和“端口”。
你能帮上忙吗?
提前谢谢。
发布于 2013-10-15 12:02:19
根据您的代码在下面的squid_db_auth示例中进行更改,
my $dsn = "DBI:mysql:database=yourdbname;host=remotemysqlserverip";将以上代码行添加到您的`squid_db_auth?我已经用SQUID 3.1.10进行了同样的测试。
https://stackoverflow.com/questions/18443818
复制相似问题