How Do I Find Apache Directory in Linux?
Contents

Where is Apache directory on Linux?

The Usual Places

  • /etc/httpd/httpd. conf.
  • /etc/httpd/conf/httpd. conf.
  • /usr/local/apache2/apache2. conf —if you’ve compiled from source, Apache is installed to /usr/local/ or /opt/ , rather than /etc/.

Where is my Apache root directory?

1 Answer. 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.

Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article
Twitter Facebook Pinterest