| ID | PASS |
|---|---|
| guest | guest |
| taro | 1111 |
| jiro | 2222 |
gate.cgi -------------- 認証プログラム init.cgi -------------- 設定ファイル admin.cgi ------------- 管理プログラム check.cgi ------------- 設定チェック用プログラム private/secret.html --- 隠しファイル(サンプル) data/log.cgi ---------- 記録ファイル data/passwd.cgi ------- パスワードファイル tmpl/enter.html ------- テンプレートファイル tmpl/error.html ------- テンプレートファイル
/home/hoge/ ... ログインする位置
|
+-- public_html / index.html (トップページ)
|
+-- gate / gate.cgi [705] ... 入室画面
| admin.cgi [705] ... 管理画面
| check.cgi [705] ... 動作チェック用プログラム
| init.cgi [604] ... 設定ファイル
|
+-- private / .htaccess ..... ディレクトリ内のアクセスを拒否
| secret.html ... 隠しファイル
|
+-- data / log.cgi [606]
| passwd.cgi [606]
|
+-- tmpl / enter.html ... 入室画面テンプレート
error.html ... エラー画面テンプレート
【設置案2】
/home/hoge/ ... ログインする位置
|
+-- private / secret.html ... 隠しファイル 【非公開の位置】
|
+-- public_html / index.html (トップページ) 【公開の位置】
|
+-- gate / gate.cgi [705] ... 入室画面
| admin.cgi [705] ... 管理画面
| check.cgi [705] ... 動作チェック用プログラム
| init.cgi [604] ... 設定ファイル
|
+-- data / log.cgi [606]
| passwd.cgi [606]
|
+-- tmpl / enter.html ... 入室画面テンプレート
error.html ... エラー画面テンプレート
| ファイル名 | パーミッション | 転送モード | |
|---|---|---|---|
| 一般サーバ |
suEXECサーバ CGIWrapサーバ |
||
| gate.cgi admin.cgi check.cgi |
755 or 705 | 701 or 700 | アスキー |
| init.cgi tmpl/enter.html tmpl/error.html private/secret.html |
644 or 604 | 600 | アスキー |
| log.cgi passwd.cgi |
666 or 606 | 600 | アスキー |
Tips:ファイル転送の仕方は以下のページを参考にしてください。
|
|
|
public_html / index.html (トップページ)
|
+-- private / bbs.cgi ... 隠しファイル
|
+-- gate / gate.cgi
| admin.cgi
| init.cgi
|
+-- data / log.cgi
| admlog.cgi
|
+-- tmpl / enter.html
error.html