How to Change the www root directory on WampServer 3

How can i change the root directory of the currently installed wampserver to some other directory. I have change directory location from httpd.conf like. I am using Hash tag before Dcoument root, and Directory but for new root i have new line without hash tag.

#DocumentRoot "c:/wamp64/www"
DocumentRoot "G:/04-WebSites/NEW_WORK"
#<Directory "c:/wamp64/www/">
<Directory "G:/04-WebSites/NEW_WORK/">

C:\wamp64\bin\apache\apache2.4.18\conf\httpd.conf

after many time restart server, pc, wamp server still showing www/index page.

index page is shown

Upvotes: 8

Views: 15010

Answers (2)

Phantom Themes
Phantom Themes

Reputation: 21

  1. Open wampserver 3 .
  2. Select the Apache menu -> httpd-vhosts.conf.
  3. Change the DocumentRoot path --> "${INSTALL_DIR}/www" to your folder location e.g. "E:/www"
  4. Restart the Wampserver
  5. Done.

For detail blog go here : https://phantomthemes.com/how-to-change-the-www-root-directory-on-wampserver-3/

let me know if it doesn't work

Upvotes: 2

Salahaddin Alprof
Salahaddin Alprof

Reputation: 206

You need to change these values also in httpd-vhosts.conf located in \conf\extra

Upvotes: 19

Related Questions