如何为squid配置启动页面?

时间:2017-10-31 08:07:30

标签: proxy ubuntu-16.04 squid

我在配置页面时遇到问题,该页面通过Squid上的Ubuntu 16.04重定向首次访问。以下是/etc/squid/squid.conf下的相关配置。我试图按照文档和网络中的示例进行操作。

external_acl_type splash_page %SRC /usr/lib/squid/ext_session_acl -b /var/lib/squid/session.db
acl existing_users external splash_page
deny_info 511:/etc/squid/splash.html existing_users
http_access deny !existing_users

Squid启动,然后以下列

存在
# service squid status
● squid.service - LSB: Squid HTTP Proxy version 3.x
   Loaded: loaded (/etc/init.d/squid; bad; vendor preset: enabled)
   Active: active (exited) since dim. 2017-10-29 15:29:47 CET; 1min 8s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 7814 ExecStop=/etc/init.d/squid stop (code=exited, status=0/SUCCESS)
  Process: 4616 ExecReload=/etc/init.d/squid reload (code=exited, status=0/SUCCESS)
  Process: 7833 ExecStart=/etc/init.d/squid start (code=exited, status=0/SUCCESS)

oct. 29 15:29:54 localhost (squid-1)[7913]: The splash_page helpers are crashing too rapidly, need help!
oct. 29 15:29:54 localhost squid[7882]: Squid Parent: (squid-1) process 7913 exited with status 1
oct. 29 15:29:57 localhost squid[7882]: Squid Parent: (squid-1) process 7925 started
oct. 29 15:29:57 localhost (squid-1)[7925]: The splash_page helpers are crashing too rapidly, need help!
oct. 29 15:29:57 localhost squid[7882]: Squid Parent: (squid-1) process 7925 exited with status 1
oct. 29 15:30:00 localhost squid[7882]: Squid Parent: (squid-1) process 7942 started
oct. 29 15:30:00 localhost (squid-1)[7942]: The splash_page helpers are crashing too rapidly, need help!
oct. 29 15:30:00 localhost squid[7882]: Squid Parent: (squid-1) process 7942 exited with status 1
oct. 29 15:30:00 localhost squid[7882]: Squid Parent: (squid-1) process 7942 will not be restarted due to repeated, frequent failures
oct. 29 15:30:00 localhost squid[7882]: Exiting due to repeated, frequent failures

文件存在并且(我认为)配置了良好的权利:

# ll /usr/lib/squid/ext_session_acl
-rwxr-xr-x 1 root root 10208 juil. 26 15:11 /usr/lib/squid/ext_session_acl*
# ll /etc/squid/splash.html
-r--r--r-- 1 root root 11 oct.  29 11:18 /etc/squid/splash.html
# ll /var/lib/squid/session.db
-rw-r----- 1 proxy root 1 oct.  29 13:43 /var/lib/squid/session.db

我错过了什么?这是我第一次使用squid所以我希望我不会问一个愚蠢的问题。

0 个答案:

没有答案