linux配置Httpd授权
生活随笔
收集整理的這篇文章主要介紹了
linux配置Httpd授权
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
1 ?用yum裝好httpd
2??用命令: vi /etc/httpd/conf/httpd.conf
? ? ?配置好?DocumentRoot "/cpcnet/products/services/web"
? ? ?寫上 :
#
# AccessFileName: The name of the file to look for in each directory
# for additional configuration directives. ?See also the AllowOverride
# directive.
#
AccessFileName .htaccess
3 ?在/cpcnet/products/services/web目錄下放.htpasswd 和 .htaccess文件
4 .htpasswd內(nèi)容如下
?
netswofdrk:bc5qdfdgmu7pdmjYc22 #(用戶名:密碼)5?.htaccess內(nèi)容如下
AuthType Basic AuthUserFile /cpcnet/products/services/web/.htpasswd AuthName "ManagedCONNECT Revamp Configuration Page" require valid-user satisfy all6 訪問(wèn)效果
? ?
創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎(jiǎng)勵(lì)來(lái)咯,堅(jiān)持創(chuàng)作打卡瓜分現(xiàn)金大獎(jiǎng)總結(jié)
以上是生活随笔為你收集整理的linux配置Httpd授权的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: oracle having用法
- 下一篇: linux 不能发送邮件可能的原因