Google +    Album

= Linux更換網頁存放資料夾 =

若欲更換網頁原先的存放資料夾
(預設為/var/www/html)

至/etc/httpd/conf/httpd.conf
約273行處

變更前:
DocumentRoot "/var/www/html"

變更後:
#DocumentRoot "/var/www/html"
DocumentRoot "/欲放置的資料夾名稱/"

(注意:欲放置的資料夾名稱需事先建立之)

最後服務重新啟動 service httpd rstart 即可

沒有留言: