レンタルサーバ No02
アクセス制限について
-----------------
新たにpwpというフォルダを作り、pukiwikiを転送

ダウンロードファイルのzipを解凍すると.htaccess  .htpasswd
という2つのファイルがある。
.htaccessの27行目からを以下のように変更する



## Authentication to this directory with basic-auth
## needs 'AllowOverride AuthConfig' at httpd.conf
AuthType Basic
AuthName      "Authentication required"
#AuthUserFile  /path/to/.htpasswd
AuthUserFile /home/httpd/dai/public_html/pwp/.htpasswd
AuthGroupFile /dev/null
Require       valid-user

次に
http://www.shtml.jp/htaccess/basic.html
にアクセルすると真ん中あたりに"こちらにPHPプログラム"
というリンクがあり、そこでユーザ名とパスワードの暗号化をし
.htpasswd の一番下に貼り付ける

最後に2つのファイルをアスキーでpwpに転送
2つのファイルのパーミッションは604