• Welcome to the world's largest Chinese hacker forum

    Welcome to the world's largest Chinese hacker forum, our forum registration is open! You can now register for technical communication with us, this is a free and open to the world of the BBS, we founded the purpose for the study of network security, please don't release business of black/grey, or on the BBS posts, to seek help hacker if violations, we will permanently frozen your IP and account, thank you for your cooperation. Hacker attack and defense cracking or network Security

    business please click here: Creation Security  From CNHACKTEAM

Recommended Posts

1,这里使用街头流氓

[root@vm7 ftp]# rpm -qa httpd

httpd-2。4 .6-97 .el7。centos。5 .x86 _ 64

2,编辑超文本协议服务配置文件

[root @ vm7 FTP]# VI/etc/httpd/conf/httpd。主配置文件

ContractedBlock.gif

ExpandedBlockStart.gif

DocumentRoot '/mnt/ftp '

目录/mnt/ftp '

连接类型设置

欢迎来到我的服务器。

AuthUserFile '/mnt/userpasswd '

需要用户用户

选项索引跟随符号链接允许执行

允许所有人

/目录

httpd.conf

DocumentRoot '/mnt/ftp'#设置访问目录

#进一步放宽对默认文档root:的访问权限

目录/mnt/ftp'#设置访问目录

AuthType Basic#设置认证类型为基础

欢迎来到我的服务器。#设置认证提示

AuthUserFile '/mnt/userpasswd' #设置认证文件路径

需要用户用户#设置允许访问的用户用户

选项索引跟随符号链接ExecCGI #开启子目录访问权限

允许所有人

/目录

IndexOptions Charset=utf-8 #配置字符集为utf-8

3,设置密码认证文件

[root @ vm7 FTP]# htpasswd-CB/mnt/user passwd admin 123456 #设置密码认证文件,并创建用户管理员,密码123456

[root @ vm7 FTP]# htpasswd-b/mnt/user passwd用户123456 #添加添加第二个用户用户

4,浏览器访问

cz351lp1nst3322.png

5,访问效果

ru4mz2rlnsy3323.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now