アパッチ設定(1)
xamppにあるアパッチの設定方法です。これはperl稼動のために上書きしたのでPHPの場合はまた違ってくると思います。
C:/xampp/apache/conf/httpd.conf
開く時は全てのファイルを指定しないと見えません。以下の箇所をチェック、または修正しました。頭の数字は行番号です。
35 ServerRoot "C:/xampp/apache"
182 ServerName localhost:80
199 <Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
344 ScriptAlias /cgi-bin/ "C:/xampp/cgi-bin/"
360 <Directory "C:/xampp/cgi-bin">
AllowOverride None
Options +ExecCGI
Order allow,deny
Allow from all
</Directory>
344 ScriptAlias /cgi-bin/ "C:/xampp/cgi-bin/"
360 <Directory "C:/xampp/cgi-bin">
AllowOverride None
Options +ExecCGI
Order allow,deny
Allow from all
</Directory>
411 AddHandler cgi-script .cgi .pl .asp
# Language settings
Include "conf/extra/httpd-languages.conf"
これは文字コードのプログラムを別のフォルダーに移してあるというコメントです。頭にシャープがある文は全てコメントでアパッチの動作には関係ないので無視してください。
22 DefaultLanguage ja
81 LanguagePriority ja en ca cs da de el eo es et fr he hr it ko ltz nl nn no pl pt pt-BR ru sv tr zh-CN zh-TW
jaを先頭に
146 AddDefaultCharset shift_jis