MING
網頁
(移至...)
About Me
Blog
▼
2014年3月20日 星期四
Apache 特定目錄限制存取
這是由 Apache 所提供的簡易方法 。不過太久沒做了,簡單註記一下。回復記憶。
使用 htpasswd function
Create your htpasswd files. E.g htpasswd –c C:\Apache\htdocs\test\.htpasswd login_name
Add .htaccess files 或寫入到 httpd.conf (or placed in httpd.conf inside a <Directory /usr/local/apache/htdocs/secret> section.)
相關參考:
Apache2.4 做法
Apache2.2 做法
沒有留言:
張貼留言
‹
›
首頁
查看網路版
沒有留言:
張貼留言