2015-10-17 57 views
0

我想製作一個指向特定目錄的「*:9090」的虛擬主機。我會解釋。Apache - vHost - Forbidden

下面的打印顯示它正在工作我想要的路徑。

enter image description here

所以,我試圖做 「*:9090」 點這個路徑(/ WAMP/WWW /根的/ dev)。低於我的嘗試。

<VirtualHost *:9090> 
DocumentRoot "c:/wamp/www/root/dev" 

<Directory c:/wamp/www/root/dev> 
    Options all 
    Allow from all 
    AllowOverride All 
    Require all granted 
</Directory> 

而現在,下面,我結果的打印。

enter image description here

我到底做錯了什麼?

回答

0

我有同樣的問題,直到我用這個:

<Virtualhost *:80 > 
    ServerName site.domain.com 
    DocumentRoot /path/to/site 
    <Directory /path/to/site> 
     AllowOverride All 
     Require all granted 
    </Directory> 

    ServerAdmin [email protected] 

    ErrorLog ${APACHE_LOG_DIR}/error.log 
    CustomLog ${APACHE_LOG_DIR}/access.log combined 
</Virtualhost> 
+0

沒有得到它......你在說什麼?服務器名 – user3707567

+0

你也許可以把它拿出來或者把它設置爲localhost – AaronEllington

+0

我試過了...不起作用... – user3707567