...
indent | ||||
---|---|---|---|---|
| ||||
{panel} \\ This is an example of how the change apache's default *DocumentRoot* to a user defined *DocumentRoot*. This example will demonstrate how to change the default *DocumentRoot* to a user defined *DocumentRoot* of *c:/var/www/html*.\\ \\ Follow this example to change the *DocumentRoot*, to one of your choosing. Replacing replacing *c:/var/www/html* with a directory path of your choosing.\\ \\ {panel} |
1. Create the new directory
indent | ||||
---|---|---|---|---|
| ||||
{panel}
\\
Using *Windows Explorer*, create the directories for *c:\var\www\html*.\\
\\
{panel}
|
2. Change apache's DocumentRoot
indent | ||||
---|---|---|---|---|
| ||||
{panel} \\ Edit c:\xampp\apache\conf\httpd.conf and change:\\ \\ From:\\ *DocumentRoot "C:/xampp/htdocs"*\\ To:\\ *DocumentRoot "C:/var/www/html"*\\ \\ and change:\\ \\ From:\\ *<Directory "C:/xampp/htdocs">*\\ To:\\ *<Directory "C:/var/www/html">*\\ \\ Save the changes and restart apache\\ \\ {panel} |
...
3. Create SymLinks
indent | ||||
---|---|---|---|---|
| ||||
{panel} \\ \\ \\ {panel} |
...
4. Verify the installation
indent | ||||
---|---|---|---|---|
| ||||
{panel} \\ \\ \\ {panel} |