欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

apache訪問根目錄 配置作用域的相關(guān)資料

 更新時(shí)間:2013年02月12日 20:31:44   作者:  
最近安裝環(huán)境為 wdlinux 集成包,后臺有非常好的網(wǎng)站管理,并且每一個(gè)網(wǎng)站都會(huì)給設(shè)置一個(gè) 單獨(dú)的 apache 配置文件,非常方便

我的網(wǎng)站有個(gè)功能  比如  www.abc.com  對應(yīng)的目錄是 aaa   還有一個(gè)網(wǎng)站目錄為 www.123.com  對bbb

但是需要在www.abc.com 上次文件的同事 往 www.123.com 里面也給生成一個(gè)同樣的 文件。 但是原配設(shè)置是有問題的,傳布上去。

查找思路:

1、文件權(quán)限問題
2、訪問所屬者

兩個(gè)都查完了 發(fā)現(xiàn)都沒問題, 郁悶了,最后想到  網(wǎng)站單獨(dú)的配置文件的問題,于是打開 www.abc.com 對應(yīng)的apache 配置文件:

復(fù)制代碼 代碼如下:

<VirtualHost *:80>
DocumentRoot /www/web/system/aaa/public_html
ServerName www.abc.com
DirectoryIndex index.php
ErrorDocument 400 /errpage/400.html
ErrorDocument 403 /errpage/403.html
ErrorDocument 404 /errpage/404.html
ErrorDocument 405 /errpage/405.html
php_admin_value open_basedir /www/web/system/aaa:/tmp
<IfModule mod_deflate.c>
DeflateCompressionLevel 7
AddOutputFilterByType DEFLATE text/html text/plain text/xml application/x-httpd-php
AddOutputFilter DEFLATE css js html htm gif jpg png bmp php
</IfModule>
</VirtualHost>
<Directory /www/web/system/aaa>
    Options FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>

發(fā)現(xiàn)多了一行,查看了一下 php_admin_value open_basedir  這個(gè)說白了是設(shè)置作用域。這里你設(shè)置一下便可解決問題。  

設(shè)置方法:

可以在 :/tmp 后面在羅列允許訪問的目錄 :/**   同樣也可以更改前面的目錄 往上一級走。

相關(guān)文章

最新評論