Top / Apache / TIPS集

デフォルトの文字セット

AddDefaultCharset Shift_JIS

ディレクトリを指定したときに実行されるファイル

DirectoryIndex index.html index.html.var index.php

特定のディレクトリだけ、デフォルトの文字セットを変える

<Directory "/var/www/cgi-bin">
   AllowOverride None
   Options None
   Order allow,deny
   Allow from all
   AddDefaultCharset Shift_JIS
   ↑このディレクトリだけ、デフォルトの文字セットがShift_JISになる
</Directory>

特定のディレクトリだけ、SSLをかける

上の設定同様、指定した箇所にだけSSLをかけるには

<Location "/hogehoge">
  SSLRequireSSL
</Location>

などとします。

http://sakaguch.com/PastBBS/0035/B0017722.html

cgi-bin内でシンボリックリンクを許可する

<Directory "/var/www/cgi-bin">
   AllowOverride None
#    Options None
   Options FollowSymLinks <-ココ
   Order allow,deny
   Allow from all
</Directory>

この記事は

選択肢 投票
おもしろかった 0  
そうでもない 0  

Top / Apache / TIPS集

現在のアクセス:12197


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