码迷,mamicode.com
首页 >  
搜索关键字:htpasswd    ( 157个结果
nginx设置用户账号和密码访问
在实际应用中,有时对指定网站内容需要有相关权限的人员才能访问浏览,那么可以运用NGINX提供的设置账号和密码访问功能:生成账号和密码:htpasswd-m/etc/nginx/.htpasswdtom#创建账号会提示输入密码查看生成的账号密码:cat/etc/nginx/.htpsswd设置配置文件:vim/etc/nginx/ng..
分类:其他好文   时间:2017-01-03 17:25:10    阅读次数:484
nginx auth
# printf "howhy:$(openssl passwd -crypt 123456)\n" >>conf/htpasswd # cat conf/htpasswd howhy:xyJkVhXGAZ8tM systemctl restart nginx ...
分类:其他好文   时间:2016-12-20 20:07:15    阅读次数:169
CentOS下搭建SVN Server
1. 介绍 这里想在CentOS上搭建的是基于http访问的SVN Server 2. 软件准备 安装相关软件 yum install httpd httpd-devel mod_dav_svn subversion mod_ssl 其中, mod_dav_svn是apache服务器访问svn的一个... ...
分类:其他好文   时间:2016-12-05 01:30:38    阅读次数:308
Nginx 访问控制&屏蔽指定 user_agent
禁止非法恶意访问的IP[root@LNMP~]#vim/usr/local/nginx/conf/vhosts/linux.conflocation~.*admin\.php${allow127.0.0.1;denyall;#auth_basic"auth";#auth_basic_user_file/usr/local/nginx/conf/.htpasswd;includefastcgi_params;fastcgi_passunix:/tmp/dis.sock;fastcgi_inde..
分类:其他好文   时间:2016-12-03 02:42:31    阅读次数:191
nginx访问web界面验证
为了安全起见,部署的web内容不想让别人看到,或者为了增强安全性。部署步骤:首先利用apache的htpasswd功能生成一个用户名和密码:htpasswd-c/usr/local/nginx/conf/test.passtest Newpassword:1234562.在nginx配置文件location中添加如下两行:location/{ root/usr/share; in..
分类:Web程序   时间:2016-11-30 17:38:19    阅读次数:204
【CentOS】LAMP相关2
//////////////////未整理版///////////////////////// icc-glibc23免编译的httpd-2.2.16.tar.gz通常是源码包 libstdc++.so.5 cannot open shared object file apr是支持Apache去移植 ...
分类:其他好文   时间:2016-11-28 00:36:30    阅读次数:222
nginx和apache 加密
nginx:location/{roothtml;indexindex.html;auth_basic"nginx";//认证提示信息auth_basic_user_filepassword;//认证的文件包含username和password}cd/usr/local/mybin/nginx/conf/htpasswd-cpasswordxiaoming输入密码再次输入密码<Directory"/var/www/html">OptionIndexs..
分类:Web程序   时间:2016-11-24 22:20:00    阅读次数:178
The server of Nginx(二)——Nginx访问控制和虚拟主机
一、Nginx访问控制 (1)基于授权的访问控制 Nginx于Apache一样,可以实现基于用户授权的访问控制,当客户端要访问相应网站或者目录时要求输入用户名密码才能正常访问,配置步骤与Apache基本一致 第一步:生成用户密码认证文件,使用htpasswd生成用户认证文件,如果没有该命令,可使用y ...
分类:其他好文   时间:2016-11-08 01:38:48    阅读次数:235
【转】Nginx windows下搭建过程
Nginx windows下搭建过程 内容列表: 简要介绍 下载安装 配置测试 一、简要介绍 Nginx ("engine x") 是一个高性能的 HTTP 和 反向代理 服务器,也是一个 IMAP/POP3/SMTP 代理服务器。 Nginx 是由 Igor Sysoev 为俄罗斯访问量第二的 R ...
分类:Windows程序   时间:2016-10-29 11:57:15    阅读次数:356
nginx开启密码认证
nginx可以为网站或者目录设置密码认证,密码认证必须是要加密的。使用apache的htpasswd来创建密码!使用htpasswd创建密码文件htpasswd-c第一次创建时使用-c,如果已存在会清空文件内容-m表示以md5格式加密存放-D删除用户1、测试有无htpasswd命令[root@localhostconf]#htpasswd-..
分类:其他好文   时间:2016-10-22 01:01:54    阅读次数:281
157条   上一页 1 ... 7 8 9 10 11 ... 16 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!