技術資料らしきものApacheコンフィグファイルメモ

cgi動作可能場所を変更

(下記は例)
ScriptAlias /cgi-bin/ "/usr/local/apache/htdocs/cgi-bin/"

cgi-bin下で画像等を許可する

<Directory /usr/local/apache/cgi-bin>
  AllowOverride None
  Options ExecCGI
  Order allow,deny
  Allow from all
  AddHandler text/html .html .gif    ←これを色々追加!
</Directory>

.htaccessを設置しても上手く動作してくれない、無効になっている?無視されている?場合に疑う設定

<Directory "[DocumentRoot]"> 内の AllowOverride の項目を、基本的にはAllにすればOKOK。たまにNoneとかになっている時あり。

AllowOverride All

2008/05/16

▲一番上へ