2013-09-26 23 views
6

我鍵入sudo服務apache2重新啓動後有一個警告。(警告)Ubuntu服務器重疊和更早的別名

* Restarting web server apache2 
[Thu Sep 26 05:46:24 2013] [warn] The Alias directive in /etc/phpmyadmin/apache.conf at line 3 will probably never match because it overlaps an earlier Alias. 
... waiting 
[Thu Sep 26 05:46:25 2013] [warn] The Alias directive in /etc/phpmyadmin/apache.conf at line 3 will probably never match because it overlaps an earlier Alias. 

它顯示了我啓動apache2後。

Warn

已經嘗試過這種解決方案,但我沒有工作。任何人都可以幫忙

+0

您試過了哪種解決方案? –

+2

http://tech.enekochan.com/2013/05/08/solve-the-alias-directive-in-will-probably-never-match-because-ir-overlaps-an-earlier-alias/ this but didn沒有工作 –

回答

18

我發現的apache.conf的內容正由位於/etc/apache2/conf.d這意味着你可以apache2.conf文件中刪除(或意見)以下行phpmyadmin.conf加載。

Include /etc/phpmyadmin/apache.conf 

希望這會有所幫助。

2

看起來好像您可能已經手動編輯或複製了配置文件,以便爲phpMyAdmin文件創建一個Alias語句,但是包管理器也爲您做了這些操作,所以您似乎有兩條重疊的語句。

+1

那麼如何解決?它仍然顯示重新啓動apache2服務 –

+1

在這種情況下,只需撤消手動進行的更改。 –