3. 然后找到 http.conf 文件中的如下內(nèi)容 # This should be changed to whatever you set DocumentRoot to. # <Directory "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"> 將 Diectory 中的路徑改成你新設(shè)的文件根目錄,比如: <Directory "C:/htdocs">
4. 保存配置文件http.conf 。
5. 修改了配置文件以后,應(yīng)重新啟動 Apache Service。(Start --> All Programs --> Apache HTTP Server 2.2 --> Monitor Apache Servers --> Restart) 修改了文件根目錄之后,你就可以將你的網(wǎng)頁存放在新設(shè)的目錄下了。