Quick Answer: What Is Default Directory of Apache in Linux?
Contents

The default document root for Apache is /var/www/ (before Ubuntu 14.04) or /var/www/html/ (Ubuntu 14.04 and later).

What directory is Apache in Linux?

Apache uses configuration files to change its behavior. It usually stores them at /etc/apache2/ on Unix systems, but the configuration directory can vary, depending on how it was installed and which operating system you’re running it on.

What is my Apache root directory?

On a fresh installation of Apache, the document root is located at /var/www/html . If you’re working with an existing server, however, you may have a significantly different setup including multiple document roots in corresponding VirtualHost directives.

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest