7

apache2 访问认证

 3 years ago
source link: http://abcdxyzk.github.io/blog/2020/09/20/tools-apache2-auth/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
kk Blog —— 通用基础

kk Blog —— 通用基础

date [-d @int|str] [+%s|"+%F %T"]

Use the up and down arrows to select a result. Press enter to go to the selected search result. Touch device users can use touch and swipe gestures.

apache2 访问认证

2020-09-20 14:12:00

htpasswd -c squid.pwd admin

chown www-data:www-data squid.pwd

修改 /etc/apache2/apache2.conf

<Location /cgi-bin/cachemgr.cgi>
	AuthType Basic
	AuthName "admin"
	AuthUserFile  /etc/squid/squid.pwd
	require valid-user
</Location>

Posted by kk

2020-09-20 14:12:00tools, apache2

« TCP_NEW_SYN_RECV apache2 支持cgi »

Copyright © 2020 - kk - Powered by Octopress 站长统计


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK