Where Is the Apache Root Directory in Ubuntu?
Contents 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...
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.
What is my Apache root directory?
The common Apache configuration file path is in /etc/apache2/sites-available/examplesite . Depending on what your developer named the directory, examplesite will vary. To verify the directory name, you would run the command ls -la /etc/apache2/sites-available .
Must Read
How do I find Apache directory in Linux?
On most systems if you installed Apache with a package manager, or it came preinstalled, the Apache configuration file is located in one of these locations:
- /etc/apache2/httpd. conf.
- /etc/apache2/apache2. conf.
- /etc/httpd/httpd. conf.
- /etc/httpd/conf/httpd. conf.