2016-02-22 22 views
1

我已經配置如下我Icecast.xml文件:如何改變路徑最初打開icecast2不同的頁面斷絕

<icecast> 
    <limits> 
     <sources>2</sources> 
    </limits> 
    <authentication> 
     <source-password>password</source-password> 
     <relay-password>password</relay-password> 
     <admin-user>password</admin-user> 
     <admin-password>password</admin-password> 
    </authentication> 

    <hostname>localhost</hostname> 
    <listen-socket> 
     <port>8000</port> 
    </listen-socket> 
    <fileserve>1</fileserve> 
    <paths> 
     <logdir>./logs</logdir> 
     <webroot>./web</webroot> 
     <adminroot>./admin</adminroot> 
     <alias source="/" dest="/status.xsl"/> 
    </paths> 
    <logging> 
     <accesslog>access.log</accesslog> 
     <errorlog>error.log</errorlog> 
     <loglevel>3</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error --> 
    </logging> 
</icecast> 

每當我輸入網址http://localhost:8000上的瀏覽器中,的Icecast狀態頁(http://localhost:8000/status.xsl)最初打開。我想更改這個初始/啓動頁面,以便在icecast服務器上打開其他頁面(例如server_status.xls)。請讓我知道在哪裏/在哪個文件,我可以改變的路徑,最初打開不同頁面的Icecast服務器上

回答

0

這是正確的,在您發佈配置:

<alias source="/" dest="/status.xsl"/> 

只需點DEST流或不同的文件在您的網絡目錄中。保存配置,重新啓動Icecast。

別名標籤也被這裏的Icecast文檔中解釋說: http://icecast.org/docs/icecast-2.4.1/config-file.html#path

請注意,這只是意味着作爲狀態界面,而不是託管網站。如果您需要託管一個網站,請使用真實的網絡服務器。

+0

嗨,感謝您的輸入。 –

相關問題