我需要配置我的 Apache 服務器來顯示 index.xml 檔案的內容,例如 index.html,而無需將它(index.xml)放在 URL 的末尾,如下所示:
http://localhost/xml/details/13986
代替
http://localhost/xml/details/13986/index.xml
目前,如果我從 URL 中洗掉 index.xml,它會在瀏覽器中顯示該檔案夾的檔案串列,我需要將 index.xml 添加到 URL 的末尾以獲取內容。
注意:我需要這個,因為一些舊代碼使用這個沒有 index.xml 的 URL,我無法更改它。出于某種原因,它在我的計算機上對我不起作用,我需要將其添加到 URL 以獲取內容。
你對這個配置有什么想法嗎?
uj5u.com熱心網友回復:
更改 apache2.conf 中的配置
DirectoryIndex index.html代替DirectoryIndex index.php
并重新啟動你的 apache
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/510601.html
標籤:阿帕奇xampp
