http サーバー †
/etc/httpd/conf/httpd.conf を編集することにより
http サーバーを設定できます。
変更箇所 †
http サーバー設定 †
DocumentRoot "/home/www/"
<Directory "/home/www/">
Options FollowSymLinks Includes ExecCGI MultiViews
Options MultiViews SymLinksIfOwnerMatch ExecCGI IncludesNoExec
LanguagePriority ja en da nl et fr de el it kr no pl pt pt-br ltz ca es sv tw ← jp を先頭に
#AddDefaultCharset ISO-8859-1 ← コメントアウト
AddHandler cgi-script .cgi
AddHandler cgi-script .pl ← 追加
ServerTokens ProductOnly ← HTTP リプライヘッダ変更 (バージョン表示無し)
ServerSignature Off ← エラーページのフッタ変更 (バージョン表示無し)
cgi を使用するための設定 †
ScriptAlias /cgi-bin/ /home/www/cgi-bin/
<Directory /home/www/cgi-bin/>
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
http サーバー起動 †
/etc/rc.d/init.d/httpd restart
前に戻る