0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

httpd.confの外部設定ファイルに関するディレクティブ

Posted at

●外部設定ファイルを使用するには

・AccessFileNameディレクティブで外部設定ファイルを指定
デフォルトの外部設定ファイル名は「.htaccess」。

・AllowOverrideディレクティブで外部設定ファイルの利用を許可(または禁止)
AllowOverrideディレクティブで指定するパラメータによって、外部設定ファイルで使用できるディレクティブを制限することが出来ます。なお、AllowOverrideディレクティブは、外部設定ファイルを許可するディレクトリの設定を行うセクション内に記述する必要があります。

・外部設定ファイルを許可したディレクトリに外部設定ファイルを配置する
外部設定ファイルの書式はhttpd.confと同じです。使用できるディレクティブが制限されている場合を除き、セクションで記述が可能な設定を外部設定ファイルでも設定することが出来ます。

●httpd.confの外部設定ファイルに関するディレクティブ
・AccessFileName ファイル名 外部設定ファイル名を指定(デフォルトは「.htaccess」」)
・AllowOverride ぱらめーた 外部設定ファイルによるhttpd.confの上書を許可。
指定できる主なパラメータ
■AuthConfig 認証関係の設定を許可
■Limit Order、Allow、Denyディレクティブの設定を許可
■All すべての設定の変更を許可
■None すべての設定の変更を禁止

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?