# vi /etc/apache2/default-server.conf 8 # 9 # Configure the DocumentRoot 10 # 11 <Directory "/srv/www/htdocs"> 12 # Possible values for the Options directive are "None", "All", 13 # or any combination of: 14 # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews 15 # 16 # Note that "MultiViews" must be named *explicitly* --- "Options All" 17 # doesn't give it to you. 18 # 19 # The Options directive is both complicated and important. Please see 20 # http://httpd.apache.org/docs-2.0/mod/core.html#options 21 # for more information. 22 #Options None 23 Options *SymLinksIfOwnerMatch 24 # AllowOverride controls what directives may be placed in .htaccess files. 25 # It can be "All", "None", or any combination of the keywords: 26 # Options FileInfo AuthConfig Limit 27 AllowOverride None 28 # Controls who can get stuff from this server. 29 Order allow,deny 30 Allow from all 31 </Directory> :wq
22行目をコメントアウトし、23行目を追記します。この設定はシンボリックリンクと実体のownerが同じ時にリンクをたどることを許可すると言うことです。
# vi /etc/apache2/httpd.conf 161 162 # List of resources to look for when the client requests a directory 163 DirectoryIndex index.html index.html.var index.php 164 :wq
URLにファイル名を指定しないときに読み込むファイル名に index.php を追加します。
# /etc/init.d/apache2 restart
1 # @see http://httpd.apache.org/docs/2.0/ja/mod/mod_deflate.html 2 # 3 # LoadModule deflate_module modules/mod_deflate.so 4 5 SetOutputFilter DEFLATE 6 7 ######################## 8 # Buffer Size of zlib 9 ######################## 10 DeflateBufferSize 8096 11 12 ######################## 13 # Compress Level 1(Low)-9(High) 14 ######################## 15 DeflateCompressionLevel 9 16 17 ######################## 18 # Memory Size of zlib 1(Low)-9(High) 19 ######################## 20 DeflateMemLevel 9 21 22 ######################## 23 # Windows Size of zlib 1(Low)-15(High) 24 ######################## 25 DeflateWindowSize 15
# /etc/rc.d/apache2 restart Syntax OK Shutting down httpd2 (waiting for all children to terminate) done Starting httpd2 (prefork) done