close
Apache2開啟網站的Index順序如下:
index.html index.cgi index.pl index.php index.xhtml
若你要改變Index順序,建議修改設定檔,加入以下文字
vim /etc/apach2/apach2.conf
DirectoryIndex index.php index.html index.cgi index.pl index.xhtml
這樣一開始就會用Index.php開啟網站
全站熱搜