On Ubuntu Trusty, which is the apache root directory for web pages?
Asked
Active
Viewed 3.1e+01k times
55
muru
- 193,181
- 53
- 473
- 722
George Udosen
- 35,970
- 13
- 99
- 121
-
Thanks every one i simply was looking for the Ubuntu equivalent of the htdocs folder in windows. – George Udosen Oct 14 '15 at 12:54
1 Answers
70
The default document root for Apache is /var/www/ (before Ubuntu 14.04) or /var/www/html/ (Ubuntu 14.04 and later).
See the file /usr/share/doc/apache2/README.Debian.gz for some explanation on how the Apache configuration on Ubuntu is done.
Florian Diesch
- 86,013
- 17
- 224
- 214
-
2Just for completeness sake, 13.10 was the first release to have apache2.4 by default. Thus it's `/var/www/html/` for 13.10 as well. It doesn't really matter, since 13.10 has long been unsupported. – Dan Oct 14 '15 at 14:09