亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

apache訪問根目錄 配置作用域的相關資料

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

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

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

查找思路:

1、文件權限問題
2、訪問所屬者

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

復制代碼 代碼如下:

<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  這個說白了是設置作用域。這里你設置一下便可解決問題。  

設置方法:

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

相關文章

最新評論