Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

indent
1
1
{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
1
1

{panel}
\\
Using *Windows Explorer*, create the directories for *c:\var\www\html*.\\
\\
{panel}

2.  Change apache's DocumentRoot

indent
1
1
{panel}
\\
Edit c:\xampp\apache\conf\httpd.conf and change:\\
\\
     From:\\
           *DocumentRoot "C:/xampp/htdocs"*\\
     To:\\
           *DocumentRoot "C:/var/www/html"*\\
\\
and change:\\
\\
     From:\\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *<Directory "C:/xampp/htdocs">*\\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;To:\\
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; *<Directory "C:/var/www/html">*\\
\\
Save the changes and restart apache\\
\\
{panel}

...

indent
1
1
{panel}
\\
\\
\\
{panel}

...

4.  Verify the installation

indent
1
1
{panel}
\\
\\
\\
{panel}