在apache2中設定虛擬主機

在apache2中設定虛擬主機

我正在使用 Apache 2.4.7 並嘗試配置虛擬主機。

我越來越:

You don't have permission to access ... on this server

當我使用以下配置時出錯:

ScriptAlias /WD190AWP/ "/usr/local/WebDev/19.0/AWP/"
<directory "/usr/local/WebDev/19.0/AWP/">  
    allow from all
    order allow,deny
</directory>

如果我改變”命令允許、拒絕“ 經過 ”要求全部授予「,

ScriptAlias /WD190AWP/ "/usr/local/WebDev/19.0/AWP/"
<directory "/usr/local/WebDev/19.0/AWP/">  
    allow from all
    Require all granted
</directory>  

然後我收到以下錯誤:

The requested URL ... was not found on this server

可能出什麼問題了?謝謝;格斯

相關內容