*http サーバー [#g60c50f9]
 /etc/httpd/conf/httpd.conf を編集することにより
 http サーバーを設定できます。

**変更箇所 [#g5fa31e4]
***http サーバー設定 [#c7eef1ae]
 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 を使用するための設定 [#a7651c89]
 ScriptAlias /cgi-bin/ /home/www/cgi-bin/
 <Directory /home/www/cgi-bin/>
     AllowOverride None
     Options ExecCGI
     Order allow,deny
     Allow from all
 </Directory>


**http サーバー起動 [#m6440d41]
 /etc/rc.d/init.d/httpd restart

[[前に戻る>Linux]]



トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS