使えるねっとで/httpdocs/内のcgiを動かす
2 / 16 / 2009

Pleskサーバーにcgiを設置するには/cgi-bin/の中に設置しなくてはいけない。
というわけではなく、意外と簡単に/httpdocs/内でもcgiを動かす事が出来る。

/httpdocs/内の.htaccessに

Options +ExecCGI
AddHandler cgi-script .cgi
AddHandler cgi-script .pl

と書くだけ。


Basic認証作成方法
8 / 29 / 2008

簡単にメモ。

1. 用意するもの

.htaccess
.htpasswd

2. 書く

.htaccessに

AuthUserFile /サーバの.htpasswdまでのフルパス
AuthGroupFile /dev/null
AuthName “Input your ID and Password.” //入力時に表示される文章
AuthType Basic
require valid-user

と書く。

.htpasswdに

ユーザ名:パスワード

と書く。

3. アップロードして確認する

以上す。.htpasswdは

User1:Pass1
User2:Pass2
.
.

みたいに増やせます。

サーバのフルパスを確認するには以下のソフトが便利です。

フルパス取得ツール

Related entry

You

are currently browsing the notizbloc blog archives for the tag .htaccess