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

前に戻る


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2018-06-17 (日) 02:34:05 (2140d)