2017-07-16 45 views
0

我有一個在Debian上運行的亞馬遜EC2。和域:flavienm.com 運行Apache 2.4.10VirtualHost總是去默認conf

我嘗試設置一個子域名服務器:眼牆:flavienm.com

在我的網站,可我:

  • 000 -default.conf
  • eyewall.flavienm.com.conf
  • 默認的ssl.conf

在我的網站,使我得到:

  • 符號鏈接到000-default.conf
  • 符號鏈接eyewall.flavienm.com.conf

在的apache.conf行:啓用的站點 - /*.conf在那裏。

我使用UserDir mod,然後到flavienm.com/~eyewall我看到頁面。

我已經在OVH中配置了DNS區域:eyewall.flavienm.com - > CNAME - > flavienm.com。

而且COMMANDE apache2ctl -S返回:

VirtualHost configuration: 
*:80     is a NameVirtualHost 
     default server flavienm.com (/etc/apache2/sites-enabled/000-default.conf:1) 
     port 80 namevhost flavienm.com (/etc/apache2/sites-enabled/000-default.conf:1) 
     port 80 namevhost eyewall.flavienm.com (/etc/apache2/sites-enabled/eyewall.flavienm.com.conf:1) 

當我嘗試訪問eyewall.flavienm.com它去flavienm.com,那麼我錯過?

+0

當您訪問域時,您的日誌文件會說什麼? –

+0

主域名的日誌flavienm.com登錄訪問,但從eyewall.flavienm.com或直接訪問flavienm.com沒有區別。 –

+0

但我發現了一些奇怪的東西,當我嘗試訪問eyewall.flavienm.com/index時,它的工作原理我得到了很好的一頁。子域眼牆上唯一的文件是「index.html」 –

回答

0

我發現了這個問題。

清除瀏覽器的緩存。

謝謝