虚拟主机指定多个文件夹访问

虚拟主机指定多个文件夹访问权限
<VirtualHost*>
ServerName banzou.dahuzhi.com
Serveralias  banzou.dahuzhi.com 
ServerAdmin admin@domain.com
DocumentRoot/home/ftp/banzou.dahuzhi.com/public/
ErrorDocument403/__ErrorFiles__/403.html
ErrorDocument404/__ErrorFiles__/404.html
ErrorDocument500/__ErrorFiles__/500.html
ErrorDocument501/__ErrorFiles__/501.html
ErrorDocument502/__ErrorFiles__/502.html
DirectoryIndex index.html index.htm index.shtml index.php
AddType application/x-httpd-php .php .phtml .phtm .php3 .php4 .php5 .php6 .php7 .php8 .php9 
//主要是这里限制可以另外访问的文件夹权限
        php_admin_value open_basedir "/home/ftp/banzou.dahuzhi.com/:/tmp/:/var/tmp/"
    php_admin_flag safe_mode off
<Directory"/home/ftp/banzou.dahuzhi.com/public/">
Options-IndexesFollowSymLinks
Allowfrom all
AllowOverrideAll
Directory>
ErrorLog"/dev/null"
LogLevel error
CustomLog"/dev/null" common
VirtualHost>

Comments : 0

有问题可在下面发表评论,当然没事也可以在下面吹吹牛皮、扯扯淡!

发表评论

*