Apache/.htaccessの有効化
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
単語検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
#topicpath
----
***.htaccessを有効にする [#l3e76e2d]
ディレクトリ(とそのサブディレクトリ)単位のアクセス権など...
デフォルトの設定では、.htaccessは無効となっていた。
有効にする方法は、
<Directory "/var/www/html">
のAllowOverride をallに変更して、.htaccessを有効にする
最終的には、httpd.confは以下のようになった。
<Directory "/var/www/html">
#
# Possible values for the Options directive are "None", ...
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch...
#
# Note that "MultiViews" must be named *explicitly* --- ...
# doesn't give it to you.
#
# The Options directive is both complicated and importan...
# http://httpd.apache.org/docs-2.0/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks ExecCGI ←ExecCGIを...
#
# AllowOverride controls what directives may be placed i...
# It can be "All", "None", or any combination of the key...
# Options FileInfo AuthConfig Limit
#
# AllowOverride None
AllowOverride All ←AllowOverr...
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
#navi(Apache)
SIZE(10){現在のアクセス:&counter;}
終了行:
#topicpath
----
***.htaccessを有効にする [#l3e76e2d]
ディレクトリ(とそのサブディレクトリ)単位のアクセス権など...
デフォルトの設定では、.htaccessは無効となっていた。
有効にする方法は、
<Directory "/var/www/html">
のAllowOverride をallに変更して、.htaccessを有効にする
最終的には、httpd.confは以下のようになった。
<Directory "/var/www/html">
#
# Possible values for the Options directive are "None", ...
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch...
#
# Note that "MultiViews" must be named *explicitly* --- ...
# doesn't give it to you.
#
# The Options directive is both complicated and importan...
# http://httpd.apache.org/docs-2.0/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks ExecCGI ←ExecCGIを...
#
# AllowOverride controls what directives may be placed i...
# It can be "All", "None", or any combination of the key...
# Options FileInfo AuthConfig Limit
#
# AllowOverride None
AllowOverride All ←AllowOverr...
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
#navi(Apache)
SIZE(10){現在のアクセス:&counter;}
ページ名: