'Root directory of web server
What is the root directory of Apache Web Server?
I am using Windows XP. My Apache server is installed at:
C:\Program Files\Apache Software Foundation\
I want to host a server and its manual says:
move all files and subdirectories from that directory to the root directory of the web server
Solution 1:[1]
It depends on how you've configured the server. The 'root directory' is actually called the document root, which is the directory from which the Apache HTTP server would serve files from. It can be changed using the DocumentRoot directive, which you should be able to find inside the configuration file(s) (e.g. /etc/apache2/apache2.conf).
From the documentation:
For example, if
DocumentRootwere set to/var/www/htmlthen a request forhttp://www.example.com/fish/guppies.htmlwould result in the file/var/www/html/fish/guppies.htmlbeing served to the requesting client.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
