{"id":437,"date":"2020-04-12T04:28:59","date_gmt":"2020-04-12T04:28:59","guid":{"rendered":"http:\/\/ubiq.co\/tech-blog\/?p=437"},"modified":"2025-10-02T05:22:36","modified_gmt":"2025-10-02T05:22:36","slug":"disable-apache-directory-listing","status":"publish","type":"post","link":"https:\/\/ubiq.co\/tech-blog\/disable-apache-directory-listing\/","title":{"rendered":"How to Disable Directory Listing in Apache"},"content":{"rendered":"<p>Apache directory listing is enabled, by default, allowing anyone to easily discover &amp; access all the files &amp; folders on a web server. This can cause security problems for your website. Here&#8217;s how to disable Apache directory listing for your web server so nobody can see your website&#8217;s folder structure.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/ubiq.co\/tech-blog\/disable-apache-directory-listing\/#How_to_Disable_Directory_Listing_in_Apache\" >How to Disable Directory Listing in Apache<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ubiq.co\/tech-blog\/disable-apache-directory-listing\/#How_to_disable_Apache_Directory_Listing_using_Virtual_Host\" >How to disable Apache Directory Listing using Virtual Host<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ubiq.co\/tech-blog\/disable-apache-directory-listing\/#How_to_disable_Apache_Directory_Listing_using_htaccess\" >How to disable Apache Directory Listing using .htaccess<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/ubiq.co\/tech-blog\/disable-apache-directory-listing\/#Restart_Apache_Web_Server\" >Restart Apache Web Server<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"How_to_Disable_Directory_Listing_in_Apache\"><\/span>How to Disable Directory Listing in Apache<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Let&#8217;s look at how to disable directory browsing. Let&#8217;s say you have a website directory (e.g \/files) in your Apache server (e.g \/var\/www\/html\/files) but don&#8217;t have an index.html file in it. When a user accesses this folder (e.g http:\/\/www.example.com\/<strong>files<\/strong>), Apache will display all files &amp; subfolders in \/product, including parent folders. Here&#8217;s an example.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-442 size-full\" src=\"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/04\/directory_listing.png?resize=392%2C253\" alt=\"disable apache directory listing\" width=\"392\" height=\"253\" srcset=\"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/04\/directory_listing.png?w=392&amp;ssl=1 392w, https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/04\/directory_listing.png?resize=300%2C194&amp;ssl=1 300w\" sizes=\"auto, (max-width: 392px) 100vw, 392px\" \/><\/p>\n<p>So any user can easily find out your website&#8217;s entire structure without any permission, by simply visiting\u00a0<em>http:\/\/www.example.com\/files<\/em> and exploit it to their advantage.\u00a0Here&#8217;s how to disable Apache directory listing. There are 2 ways to disable listing the directory content in apache &#8211; using Virtual Hosts and .htaccess file. We will look at both these methods.\u00a0After you hide website index in Apache, you may want to use a <a href=\"http:\/\/ubiq.co\/mysql-charts\">reporting software<\/a>\u00a0to monitor the key metrics about your website\/application such as signups, traffic, sales, revenue, etc. using dashboards &amp; charts, to ensure everything is working well and spot issues quickly.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"How_to_disable_Apache_Directory_Listing_using_Virtual_Host\"><\/span>How to disable Apache Directory Listing using Virtual Host<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If you have setup a virtual host file (e.g \/etc\/apache2\/sites-available\/<strong>website.conf<\/strong>), then you can simply open it with a editor<\/p>\n<pre>$ sudo vim\u00a0\/etc\/apache2\/sites-available\/<strong>website.conf<\/strong>\n<\/pre>\n<p>and add the following lines in it. Make sure you mention the correct path to your website directory in &lt;Directory&gt; tag.<\/p>\n<pre>&lt;Directory \/var\/www\/files&gt;\n   Options -Indexes\n&lt;\/Directory&gt;\n<\/pre>\n<p>In the above configuration, the <em>Options &#8211; Indexes<\/em> will disable Apache directory listing for folder\u00a0<span class=\"crayon-e \">\/var\/www\/html\/<strong>files<\/strong>. If you want to stop directory listing for a different folder, just change this folder path to something else. If you change the folder path to the website root (e.g \/www\/var\/html) then it will disable directory listing globally for your entire website.<\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"How_to_disable_Apache_Directory_Listing_using_htaccess\"><\/span>How to disable Apache Directory Listing using .htaccess<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Open Apache main configuration file<\/p>\n<pre>$ sudo vi \/etc\/apache2\/apache2.conf #On Debian\/Ubuntu systems\n$ sudo vi \/etc\/httpd\/conf\/httpd.conf #On RHEL\/CentOS systems\n<\/pre>\n<p>Look for the section <em>AllowOverride<\/em> and set it to <em>AllowOverride All<\/em><\/p>\n<pre>&lt;Directory \/var\/www\/html\/&gt;\n   Options Indexes FollowSymLinks\n   AllowOverride All\n&lt;\/Directory&gt;\n<\/pre>\n<p>Open your <em>.htaccess<\/em> file at <em>\/www\/var\/html\/.htaccess<\/em>. If it doesn&#8217;t exist, create a new blank file with filename <em>.htaccess<\/em><\/p>\n<p>Add the following lines\u00a0in it. Make sure you mention the correct path to your website directory in &lt;Directory&gt; tag.<\/p>\n<pre>&lt;Directory \/var\/www\/files&gt;\n   Options -Indexes\n&lt;\/Directory&gt;\n<\/pre>\n<p>In the above configuration, the <em>Options &#8211; Indexes<\/em> will disable Apache directory listing for folder\u00a0<span class=\"crayon-e \">\/var\/www\/html\/<strong>files<\/strong>. If you want to stop directory listing for a different folder, just change this folder path to something else. If you change the folder path to the website root (e.g \/www\/var\/html) then it will disable directory listing globally for for your entire website.<\/span><\/p>\n<p>If you want to add more protection to directory, you can <a href=\"https:\/\/ubiq.co\/tech-blog\/password-protect-directory-apache\/\">password protect directory<\/a> in Apache server.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Restart_Apache_Web_Server\"><\/span>Restart Apache Web Server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In both cases, restart Apache web server to apply changes.<\/p>\n<pre><strong>-------- On SystemD based systems --------<\/strong> \n$ sudo systemctl restart apache2\n$ sudo systemctl restart httpd\n\n<strong>-------- On SysVInit based systems --------<\/strong> \n$ sudo \/etc\/init.d\/apache2 restart \n$ sudo \/etc\/init.d\/httpd restart<\/pre>\n<p>Now, when you try accessing the folder via browser, you&#8217;ll get a &#8220;403:Access Forbidden&#8221; response. This way you can protect web directory in Apache.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-452 size-full\" src=\"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/04\/403-access-forbidden.png?resize=486%2C183\" alt=\"403 access forbidden\" width=\"486\" height=\"183\" srcset=\"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/04\/403-access-forbidden.png?w=486&amp;ssl=1 486w, https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/04\/403-access-forbidden.png?resize=300%2C113&amp;ssl=1 300w\" sizes=\"auto, (max-width: 486px) 100vw, 486px\" \/><\/p>\n<p>By the way, if you want to create charts &amp; dashboards to monitor your business or website, you can try <a href=\"https:\/\/ubiq.co\">Ubiq<\/a>. We offer a 14-day free trial.<\/p>\n\n\n<p>Also read:<br><a href=\"https:\/\/ubiq.co\/tech-blog\/redirect-page-another-domain-htaccess-file\/\">How to Redirect to Another Domain using .htaccess<\/a><br><a href=\"https:\/\/ubiq.co\/tech-blog\/how-to-redirect-all-pages-to-new-domain\/\">How to Redirect All Pages to New Domain in Apache<\/a><br><a href=\"https:\/\/ubiq.co\/tech-blog\/set-access-control-allow-origin-cors-headers-apache\/\">How to Set CORS Headers in Apache<\/a><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apache directory is enabled by default. Here&#8217;s how to disable Apache directory listing for your website.<\/p>\n","protected":false},"author":1,"featured_media":454,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3],"tags":[28],"class_list":["post-437","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apache","tag-directory-listing"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Disable Directory Listing in Apache - Ubiq BI<\/title>\n<meta name=\"description\" content=\"Apache directory is enabled by default, for Apache web server. Here&#039;s how to disable Apache directory listing for your website.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ubiq.co\/tech-blog\/disable-apache-directory-listing\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Disable Directory Listing in Apache - Ubiq BI\" \/>\n<meta property=\"og:description\" content=\"Apache directory is enabled by default, for Apache web server. Here&#039;s how to disable Apache directory listing for your website.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ubiq.co\/tech-blog\/disable-apache-directory-listing\/\" \/>\n<meta property=\"og:site_name\" content=\"Ubiq BI\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ubiqbi\" \/>\n<meta property=\"article:published_time\" content=\"2020-04-12T04:28:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-10-02T05:22:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/04\/disable-apache-directory-listing.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"938\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Sreeram Sreenivasan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@UbiqBI\" \/>\n<meta name=\"twitter:site\" content=\"@UbiqBI\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sreeram Sreenivasan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/disable-apache-directory-listing\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/disable-apache-directory-listing\\\/\"},\"author\":{\"name\":\"Sreeram Sreenivasan\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#\\\/schema\\\/person\\\/db98d49a766a3a111d8510935ab90abc\"},\"headline\":\"How to Disable Directory Listing in Apache\",\"datePublished\":\"2020-04-12T04:28:59+00:00\",\"dateModified\":\"2025-10-02T05:22:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/disable-apache-directory-listing\\\/\"},\"wordCount\":595,\"image\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/disable-apache-directory-listing\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/disable-apache-directory-listing.jpg?fit=1200%2C938&ssl=1\",\"keywords\":[\"directory listing\"],\"articleSection\":[\"Apache\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/disable-apache-directory-listing\\\/\",\"url\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/disable-apache-directory-listing\\\/\",\"name\":\"How to Disable Directory Listing in Apache - Ubiq BI\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/disable-apache-directory-listing\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/disable-apache-directory-listing\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/disable-apache-directory-listing.jpg?fit=1200%2C938&ssl=1\",\"datePublished\":\"2020-04-12T04:28:59+00:00\",\"dateModified\":\"2025-10-02T05:22:36+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#\\\/schema\\\/person\\\/db98d49a766a3a111d8510935ab90abc\"},\"description\":\"Apache directory is enabled by default, for Apache web server. Here's how to disable Apache directory listing for your website.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/disable-apache-directory-listing\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/disable-apache-directory-listing\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/disable-apache-directory-listing\\\/#primaryimage\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/disable-apache-directory-listing.jpg?fit=1200%2C938&ssl=1\",\"contentUrl\":\"https:\\\/\\\/i0.wp.com\\\/ubiq.co\\\/tech-blog\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/disable-apache-directory-listing.jpg?fit=1200%2C938&ssl=1\",\"width\":1200,\"height\":938,\"caption\":\"disable apache directory listing\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/disable-apache-directory-listing\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Disable Directory Listing in Apache\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#website\",\"url\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/\",\"name\":\"Ubiq BI\",\"description\":\"Build dashboards &amp; reports in minutes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/#\\\/schema\\\/person\\\/db98d49a766a3a111d8510935ab90abc\",\"name\":\"Sreeram Sreenivasan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g\",\"caption\":\"Sreeram Sreenivasan\"},\"description\":\"Sreeram Sreenivasan is the Founder of Ubiq. He has helped many Fortune 500 companies in the areas of BI &amp; software development.\",\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/in\\\/sreeram-sreenivasan\\\/\"],\"url\":\"https:\\\/\\\/ubiq.co\\\/tech-blog\\\/author\\\/wordpress\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Disable Directory Listing in Apache - Ubiq BI","description":"Apache directory is enabled by default, for Apache web server. Here's how to disable Apache directory listing for your website.","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:\/\/ubiq.co\/tech-blog\/disable-apache-directory-listing\/","og_locale":"en_US","og_type":"article","og_title":"How to Disable Directory Listing in Apache - Ubiq BI","og_description":"Apache directory is enabled by default, for Apache web server. Here's how to disable Apache directory listing for your website.","og_url":"https:\/\/ubiq.co\/tech-blog\/disable-apache-directory-listing\/","og_site_name":"Ubiq BI","article_publisher":"https:\/\/www.facebook.com\/ubiqbi","article_published_time":"2020-04-12T04:28:59+00:00","article_modified_time":"2025-10-02T05:22:36+00:00","og_image":[{"width":1200,"height":938,"url":"https:\/\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/04\/disable-apache-directory-listing.jpg","type":"image\/jpeg"}],"author":"Sreeram Sreenivasan","twitter_card":"summary_large_image","twitter_creator":"@UbiqBI","twitter_site":"@UbiqBI","twitter_misc":{"Written by":"Sreeram Sreenivasan","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ubiq.co\/tech-blog\/disable-apache-directory-listing\/#article","isPartOf":{"@id":"https:\/\/ubiq.co\/tech-blog\/disable-apache-directory-listing\/"},"author":{"name":"Sreeram Sreenivasan","@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc"},"headline":"How to Disable Directory Listing in Apache","datePublished":"2020-04-12T04:28:59+00:00","dateModified":"2025-10-02T05:22:36+00:00","mainEntityOfPage":{"@id":"https:\/\/ubiq.co\/tech-blog\/disable-apache-directory-listing\/"},"wordCount":595,"image":{"@id":"https:\/\/ubiq.co\/tech-blog\/disable-apache-directory-listing\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/04\/disable-apache-directory-listing.jpg?fit=1200%2C938&ssl=1","keywords":["directory listing"],"articleSection":["Apache"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/ubiq.co\/tech-blog\/disable-apache-directory-listing\/","url":"https:\/\/ubiq.co\/tech-blog\/disable-apache-directory-listing\/","name":"How to Disable Directory Listing in Apache - Ubiq BI","isPartOf":{"@id":"https:\/\/ubiq.co\/tech-blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ubiq.co\/tech-blog\/disable-apache-directory-listing\/#primaryimage"},"image":{"@id":"https:\/\/ubiq.co\/tech-blog\/disable-apache-directory-listing\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/04\/disable-apache-directory-listing.jpg?fit=1200%2C938&ssl=1","datePublished":"2020-04-12T04:28:59+00:00","dateModified":"2025-10-02T05:22:36+00:00","author":{"@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc"},"description":"Apache directory is enabled by default, for Apache web server. Here's how to disable Apache directory listing for your website.","breadcrumb":{"@id":"https:\/\/ubiq.co\/tech-blog\/disable-apache-directory-listing\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ubiq.co\/tech-blog\/disable-apache-directory-listing\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ubiq.co\/tech-blog\/disable-apache-directory-listing\/#primaryimage","url":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/04\/disable-apache-directory-listing.jpg?fit=1200%2C938&ssl=1","contentUrl":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/04\/disable-apache-directory-listing.jpg?fit=1200%2C938&ssl=1","width":1200,"height":938,"caption":"disable apache directory listing"},{"@type":"BreadcrumbList","@id":"https:\/\/ubiq.co\/tech-blog\/disable-apache-directory-listing\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ubiq.co\/tech-blog\/"},{"@type":"ListItem","position":2,"name":"How to Disable Directory Listing in Apache"}]},{"@type":"WebSite","@id":"https:\/\/ubiq.co\/tech-blog\/#website","url":"https:\/\/ubiq.co\/tech-blog\/","name":"Ubiq BI","description":"Build dashboards &amp; reports in minutes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ubiq.co\/tech-blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/ubiq.co\/tech-blog\/#\/schema\/person\/db98d49a766a3a111d8510935ab90abc","name":"Sreeram Sreenivasan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4b3127ed2d4bb8efb3fa0bbb52cf2efd4d0156c97fc05a503537c883e8279947?s=96&d=mm&r=g","caption":"Sreeram Sreenivasan"},"description":"Sreeram Sreenivasan is the Founder of Ubiq. He has helped many Fortune 500 companies in the areas of BI &amp; software development.","sameAs":["https:\/\/www.linkedin.com\/in\/sreeram-sreenivasan\/"],"url":"https:\/\/ubiq.co\/tech-blog\/author\/wordpress\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/ubiq.co\/tech-blog\/wp-content\/uploads\/2020\/04\/disable-apache-directory-listing.jpg?fit=1200%2C938&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/pbGGTT-73","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/437","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/comments?post=437"}],"version-history":[{"count":28,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/437\/revisions"}],"predecessor-version":[{"id":9702,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/posts\/437\/revisions\/9702"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/media\/454"}],"wp:attachment":[{"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/media?parent=437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/categories?post=437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubiq.co\/tech-blog\/wp-json\/wp\/v2\/tags?post=437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}