运维开发网

Smokeping添加apache密码

运维开发网 https://www.qedev.com 2021-03-09 14:36 出处:51CTO 作者:Tms丶sentpang
centos6创建Smokeping密码

vim /etc/httpd/conf/httpd.conf

在末尾添加最后六行 注意区别

Alias /cache "/usr/local/smokeping/cache/"

Alias /cropper "/usr/local/smokeping/htdocs/cropper/"

Alias /smokeping "/usr/local/smokeping/htdocs/smokeping.fcgi"

<Directory "/usr/local/smokeping">

AllowOverride None

Options All

AddHandler cgi-script .fcgi .cgi

Order allow,deny

Allow from all

#DirectoryIndex smokeping.fcgi

#</Directory>

AuthName "Smokeping"

AuthType Basic

AuthUserFile /usr/local/smokeping/htdocs/htpasswd

Require valid-user

DirectoryIndex smokeping.fcgi

</Directory>

进入这个目录创建用户名admin和密码

cd /usr/local/smokeping/htdocs

htpasswd -c /usr/local/smokeping/htdocs/htpasswd admin

service httpd restart

扫码领视频副本.gif

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号