{"id":6544,"date":"2021-04-01T11:21:32","date_gmt":"2021-04-01T11:21:32","guid":{"rendered":"https:\/\/www.bodhost.com\/kb\/?p=6544"},"modified":"2026-02-26T14:03:09","modified_gmt":"2026-02-26T14:03:09","slug":"where-is-apaches-default-document-root-directory","status":"publish","type":"post","link":"https:\/\/www.bodhost.com\/kb\/where-is-apaches-default-document-root-directory\/","title":{"rendered":"Where is Apache&#8217;s Default Document Root Directory?"},"content":{"rendered":"\r\n<p>The default document root directory of Apache is discussed in this article.<br \/>If you&#8217;re searching for it, type the following command to locate Apache&#8217;s default doc root:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-verse\">grep -i dir_docroot \/etc\/cpanel\/ea4\/paths.conf<br \/>dir_docroot=\/var\/www\/html<\/pre>\r\n\r\n\r\n\r\n<p><strong>You can find these files inside the directory:<\/strong><\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-verse\">\u251c\u2500\u2500 400.shtml\r\n\u251c\u2500\u2500 401.shtml\r\n\u251c\u2500\u2500 403.shtml\r\n\u251c\u2500\u2500 404.shtml\r\n\u251c\u2500\u2500 413.shtml\r\n\u251c\u2500\u2500 500.shtml\r\n\u251c\u2500\u2500 cp_errordocument.shtml\r\n\u2514\u2500\u2500 index.html<\/pre>\r\n\r\n\r\n\r\n<p>Don\u2019t forget that this directory contains the default document root for the server. It contains default pages that users can see and it is a reserved director, so here it cannot be used for setting up other content. If you are looking for the proper locations for user-specific content associated with the virtual host then you get this command:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-verse\">grep -i homedir \/etc\/wwwacct.conf<br \/>HOMEDIR \/home<\/pre>\r\n\r\n\r\n\r\n<p>When you create a new user or account in the cPanel a new subdirectory is automatically created inside this directory where all of the user\u2019s content resides. As the webroot directory is given user and you can find it here:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-verse\">\/home\/$USER\/public_html<\/pre>\r\n\r\n\r\n\r\n<p>All the web content for the account will reside from this location. This directory is also accessible from<\/p>\r\n\r\n\r\n\r\n<p><strong>cPanel &gt; Files &gt; File Manager &gt; public_html<\/strong><\/p>\r\n\r\n\r\n\r\n<p>We sincerely hope you now have a reasonable understanding of Where is Apache&#8217;s Default Document Root Directory. If you continue to have issues with the procedure mentioned above, please contact<strong> <a href=\"https:\/\/www.bodhost.com\/\" target=\"_blank\" rel=\"noreferrer noopener\">bodHOST<\/a><\/strong>team for proactive support 24\u00d77<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>The default document root directory of Apache is discussed in this article.If you&#8217;re searching for it, type the following command to locate Apache&#8217;s default doc root: grep -i dir_docroot \/etc\/cpanel\/ea4\/paths.confdir_docroot=\/var\/www\/html&hellip;<\/p>\n<p><a href=\"https:\/\/www.bodhost.com\/kb\/where-is-apaches-default-document-root-directory\/\" class=\"more-link\">Read More<\/a><\/p>\n","protected":false},"author":22,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[894],"tags":[895,893,119],"class_list":["post-6544","post","type-post","status-publish","format-standard","hentry","category-apache-web-server","tag-apache","tag-apache-document-root-directory","tag-apache-server"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Where is Apache&#039;s Default Document Root Directory?<\/title>\n<meta name=\"description\" content=\"Do you want to know the location of Apache&#039;s Default Document Root Directory? Here is an article that will help you with more information.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.bodhost.com\/kb\/where-is-apaches-default-document-root-directory\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Where is Apache&#039;s Default Document Root Directory?\" \/>\n<meta property=\"og:description\" content=\"Do you want to know the location of Apache&#039;s Default Document Root Directory? Here is an article that will help you with more information.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bodhost.com\/kb\/where-is-apaches-default-document-root-directory\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowledge Base - bodHOST\" \/>\n<meta property=\"article:published_time\" content=\"2021-04-01T11:21:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-26T14:03:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/04\/How-to-Find-Apache-Default-Document-Root.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Vincer\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/04\/How-to-Find-Apache-Default-Document-Root-1.jpg\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vincer\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/where-is-apaches-default-document-root-directory\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/where-is-apaches-default-document-root-directory\\\/\"},\"author\":{\"name\":\"Vincer\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/f3852d74aeac480763235276b5faddd0\"},\"headline\":\"Where is Apache&#8217;s Default Document Root Directory?\",\"datePublished\":\"2021-04-01T11:21:32+00:00\",\"dateModified\":\"2026-02-26T14:03:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/where-is-apaches-default-document-root-directory\\\/\"},\"wordCount\":209,\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"keywords\":[\"apache\",\"apache document root directory\",\"Apache server\"],\"articleSection\":[\"Apache Web server\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/where-is-apaches-default-document-root-directory\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/where-is-apaches-default-document-root-directory\\\/\",\"name\":\"Where is Apache's Default Document Root Directory?\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\"},\"datePublished\":\"2021-04-01T11:21:32+00:00\",\"dateModified\":\"2026-02-26T14:03:09+00:00\",\"description\":\"Do you want to know the location of Apache's Default Document Root Directory? Here is an article that will help you with more information.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/where-is-apaches-default-document-root-directory\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/where-is-apaches-default-document-root-directory\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/where-is-apaches-default-document-root-directory\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Apache Web server\",\"item\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/category\\\/apache-web-server\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Where is Apache&#8217;s Default Document Root Directory?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"alternateName\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"contentUrl\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"width\":240,\"height\":240,\"caption\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/f3852d74aeac480763235276b5faddd0\",\"name\":\"Vincer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bb5079f76e01aaa97b2ffcb7a562292482693b395aba4a4214c98f006c07d352?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bb5079f76e01aaa97b2ffcb7a562292482693b395aba4a4214c98f006c07d352?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bb5079f76e01aaa97b2ffcb7a562292482693b395aba4a4214c98f006c07d352?s=96&d=mm&r=g\",\"caption\":\"Vincer\"},\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/author\\\/vinayak\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Where is Apache's Default Document Root Directory?","description":"Do you want to know the location of Apache's Default Document Root Directory? Here is an article that will help you with more information.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.bodhost.com\/kb\/where-is-apaches-default-document-root-directory\/","og_locale":"en_US","og_type":"article","og_title":"Where is Apache's Default Document Root Directory?","og_description":"Do you want to know the location of Apache's Default Document Root Directory? Here is an article that will help you with more information.","og_url":"https:\/\/www.bodhost.com\/kb\/where-is-apaches-default-document-root-directory\/","og_site_name":"Knowledge Base - bodHOST","article_published_time":"2021-04-01T11:21:32+00:00","article_modified_time":"2026-02-26T14:03:09+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/04\/How-to-Find-Apache-Default-Document-Root.jpg","type":"image\/jpeg"}],"author":"Vincer","twitter_card":"summary_large_image","twitter_image":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2021\/04\/How-to-Find-Apache-Default-Document-Root-1.jpg","twitter_misc":{"Written by":"Vincer","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.bodhost.com\/kb\/where-is-apaches-default-document-root-directory\/#article","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/where-is-apaches-default-document-root-directory\/"},"author":{"name":"Vincer","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/f3852d74aeac480763235276b5faddd0"},"headline":"Where is Apache&#8217;s Default Document Root Directory?","datePublished":"2021-04-01T11:21:32+00:00","dateModified":"2026-02-26T14:03:09+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bodhost.com\/kb\/where-is-apaches-default-document-root-directory\/"},"wordCount":209,"publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"keywords":["apache","apache document root directory","Apache server"],"articleSection":["Apache Web server"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.bodhost.com\/kb\/where-is-apaches-default-document-root-directory\/","url":"https:\/\/www.bodhost.com\/kb\/where-is-apaches-default-document-root-directory\/","name":"Where is Apache's Default Document Root Directory?","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/#website"},"datePublished":"2021-04-01T11:21:32+00:00","dateModified":"2026-02-26T14:03:09+00:00","description":"Do you want to know the location of Apache's Default Document Root Directory? Here is an article that will help you with more information.","breadcrumb":{"@id":"https:\/\/www.bodhost.com\/kb\/where-is-apaches-default-document-root-directory\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bodhost.com\/kb\/where-is-apaches-default-document-root-directory\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.bodhost.com\/kb\/where-is-apaches-default-document-root-directory\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Apache Web server","item":"https:\/\/www.bodhost.com\/kb\/category\/apache-web-server\/"},{"@type":"ListItem","position":2,"name":"Where is Apache&#8217;s Default Document Root Directory?"}]},{"@type":"WebSite","@id":"https:\/\/www.bodhost.com\/kb\/#website","url":"https:\/\/www.bodhost.com\/kb\/","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","description":"","publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"alternateName":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bodhost.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.bodhost.com\/kb\/#organization","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","url":"https:\/\/www.bodhost.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","contentUrl":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","width":240,"height":240,"caption":"Web Hosting Knowledge Base | bodHOST Hosting FAQ"},"image":{"@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/f3852d74aeac480763235276b5faddd0","name":"Vincer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/bb5079f76e01aaa97b2ffcb7a562292482693b395aba4a4214c98f006c07d352?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/bb5079f76e01aaa97b2ffcb7a562292482693b395aba4a4214c98f006c07d352?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/bb5079f76e01aaa97b2ffcb7a562292482693b395aba4a4214c98f006c07d352?s=96&d=mm&r=g","caption":"Vincer"},"url":"https:\/\/www.bodhost.com\/kb\/author\/vinayak\/"}]}},"_links":{"self":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/6544","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/users\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/comments?post=6544"}],"version-history":[{"count":7,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/6544\/revisions"}],"predecessor-version":[{"id":11988,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/6544\/revisions\/11988"}],"wp:attachment":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/media?parent=6544"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/categories?post=6544"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/tags?post=6544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}