apache出現You don't have permission to access
作者:佚名 時間:2012-05-10 分享到:
今天在新的linux上跑原來的代碼,使用的虛擬主機的模式進行操作。幾個相關的網站放在一個文件里,想法是通過網站列出的目錄進行相應的網站進行操作。一切設置完成后,在瀏覽器中運行出現在You don't have permission to access / on this server.
# Each directory to which Apache has access can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# features.
#
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
#
#
#
#
#
#
<Directory
</Directory>
這里改成
<Directory
</Directory>
或改成
<Directory
</Directory>
如沒特殊注明,文章均為上海聯楷網絡原創,轉載請注明來自:http://www.ktcbnqb.cn/contact/20151229/n7542.html