Apache配置多站點后:連接失敗 You don't have permission to access
連接失敗是應為沒有在全局配置中添加監聽端口
You don't have permission to access 是應為在全局配置的"/"目錄權限問題
Listen 81
<VirtualHost *:81>
ServerName Test
Options All ExecCGI FollowSymLinks Includes IncludesNOEXEC Indexes MultiViews SymLinksIfOwnerMatch
DirectoryIndex index.html index.htm index.php index.php3 index.php4 index.phtml index.shtml index.shtm
DocumentRoot "E:/enic/MoleWeb/"
<Directory "E:/enic/MoleWeb/">
Options Indexes FollowSymLinks ExecCGI
Order Deny,allow
Allow from all
</Directory>
</VirtualHost>
<Directory "/">
# explicitly permit access to web content directories in other
# <Directory> blocks below.
AllowOverride None
#Require all denied
</Directory>