ディレクトリごとの.htaccessを有効化する設定。よく忘れるので覚書。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
# vi httpd.conf <Directory "/var/www/html" > # # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.4/mod/core.html#options # for more information. # Options Indexes FollowSymLinks # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # #AllowOverride None ← .htaccessを使いたいので変更 AllowOverride All # # Controls who can get stuff from this server. # Require all granted </Directory> |
[ホスティング] Apacheバーチャルホストの設定 (CentOS 7.1) – 端くれプログラマの備忘録
https://www.84kure.com/blog/2015/12/04/%e3%83%9b%e3%82%b9%e3%83%86%e3%82%a3%e3%83%b3%e3%82%b0-apache%e3%83%90%e3%83%bc%e3%83%81%e3%83%a3%e3%83%ab%e3%83%9b%e3%82%b9%e3%83%88%e3%81%ae%e8%a8%ad%e5%ae%9a-centos-7-1/