Feb 01, 2006

Apacheの設定

Apacheの設定は、「/etc/apache/httpd.conf」を書き換えることで行う。
○サーバの名前は「/etc/hosts」の名前と同じにする。たとえば「i.love.belle.cxm」。
○perl cgiを使うので、 #AddHandler cgi-script .cgi .pl
のシャープを外す。
○Directory /home/*/public_htmlの次の1行に、「Options」を追加する。
AllowOverride FileInfo AuthConfig Limit Options
となる。
このディレクティブの後に、
ScriptAlias /~*/cgi-bin/ "/home/*/public_html/cgi-bin/"
を追加。また、
<Directory /home/*/public_html/cgi-bin>
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
を追加する。
○たいていのCGIスクリプトの実行を、「/usr/local/bin/perl」と書いているので、シンボリックリンクを作成する(rootで)
#ln -s /usr/bin/perl /usr/local/bin/perl
○「DefaultCharset」をoffにする。
○「AddLanguage」のところの、
AddCharset ISO-2022-JP .jis
の後に、
AddCharset EUC-JP .euc
AddCharset SHIFT_JIS .sjis
を追加する。
この2つをやらないと文字化けする。

Edit this entry...

wikieditish message: Ready to edit this entry.

If you want to upload the jpeg file:


Rename file_name:

Add comment(Comment is NOT appear on this page):
















A quick preview will be rendered here when you click "Preview" button.