By default, Apache looks for your web page files in the subdirectory htdocs in the directory where Apache is installed. You can change this with the DocumentRoot directive. Look for the line that begins with DocumentRoot, such as the following:
DocumentRoot “C:/Program Files/Apache Group/Apache/htdocs”
Change the filename and path to the location where you want to store your web page files. Don’t include a forward slash (/) on the end of the directory path. For example, the following might be your new directive:
DocumentRoot /usr/mysrver/Apache2/webpages
DocumentRoot “C:/Program Files/Apache Group/Apache/htdocs”
Change the filename and path to the location where you want to store your web page files. Don’t include a forward slash (/) on the end of the directory path. For example, the following might be your new directive:
DocumentRoot /usr/mysrver/Apache2/webpages
No comments:
Post a Comment