Recently I set these setting for apache server.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
<virtualhost *:80> ServerName hoge.com ServerAlias www.hoge.com DocumentRoot "/home/hoge/hoge.com/www/" php_admin_value open_basedir "/home/hoge/hoge.com/www//:/tmp/" < Directory ~ "/..+/"> Order Deny,Allow Deny from All </Directory> < Directory "/home/hoge/public/www/"> Options All AllowOverride All </Directory> |
php_admin_value
It can set access by user directory.
Directory ~ “/..+/”
It can’t access .filename by Http.It is like .svn.