{"id":46,"date":"2017-10-10T04:43:00","date_gmt":"2017-10-10T04:43:00","guid":{"rendered":"https:\/\/linuxadmin.melberi.com\/uncategorized\/how-to-disable-directory-browsing-in"},"modified":"2017-10-10T06:38:23","modified_gmt":"2017-10-10T06:38:23","slug":"disable-directory-browsing","status":"publish","type":"post","link":"https:\/\/www.melberi.com\/linuxadmin\/apache\/disable-directory-browsing","title":{"rendered":"Disable directory browsing in Apache httpd.conf"},"content":{"rendered":"<p>How to disable directory browsing in Apache httpd.conf in CentOS Fedora Linux Ubuntu Redhat Apache2<\/p>\n<h2><span style=\"text-decoration: underline;\">Disable Apache directory browsing<\/span><\/h2>\n<p>In the latest Apache Fedora Servers, edit the httpd.conf and remove the <b>Indexes <\/b>form the default document root access.<\/p>\n<p>#vim \/etc\/httpc\/conf\/httpd.conf<\/p>\n<p><span style=\"color: #808080;\"># Further relax access to the default document root:<\/span><br \/>\n<span style=\"color: #808080;\"> &lt;Directory &#8220;\/var\/www\/html&#8221;&gt;<\/span><br \/>\n<span style=\"color: #808080;\"> # Possible values for the Options directive are &#8220;None&#8221;, &#8220;All&#8221;,<\/span><br \/>\n<span style=\"color: #808080;\"> # or any combination of:<\/span><br \/>\n<span style=\"color: #808080;\"> # \u00a0 Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews<\/span><br \/>\n<span style=\"color: #808080;\"> #<\/span><br \/>\n<span style=\"color: #808080;\"> # Note that &#8220;MultiViews&#8221; must be named *explicitly* &#8212; &#8220;Options All&#8221;<\/span><br \/>\n<span style=\"color: #808080;\"> # doesn&#8217;t give it to you.<\/span><br \/>\n<span style=\"color: #808080;\"> #<\/span><br \/>\n<span style=\"color: #808080;\"> # The Options directive is both complicated and important. \u00a0Please see<\/span><br \/>\n<span style=\"color: #808080;\"> # http:\/\/httpd.apache.org\/docs\/2.4\/mod\/core.html#options<\/span><br \/>\n<span style=\"color: #808080;\"> # for more information.<\/span><br \/>\n<span style=\"color: #808080;\"> #<\/span><br \/>\n<span style=\"color: #808080;\"> <b>Options\u00a0Indexes\u00a0FollowSymLinks<\/b><\/span><\/p>\n<p><span style=\"color: #808080;\">#<\/span><br \/>\n<span style=\"color: #808080;\"> # AllowOverride controls what directives may be placed in .htaccess files.<\/span><br \/>\n<span style=\"color: #808080;\"> # It can be &#8220;All&#8221;, &#8220;None&#8221;, or any combination of the keywords:<\/span><br \/>\n<span style=\"color: #808080;\"> # \u00a0 Options FileInfo AuthConfig Limit<\/span><br \/>\n<span style=\"color: #808080;\"> #<\/span><br \/>\n<span style=\"color: #808080;\"> AllowOverride None<\/span><\/p>\n<p><span style=\"color: #808080;\">#<\/span><br \/>\n<span style=\"color: #808080;\"> # Controls who can get stuff from this server.<\/span><br \/>\n<span style=\"color: #808080;\"> #<\/span><br \/>\n<span style=\"color: #808080;\"> Require all granted<\/span><br \/>\n<span style=\"color: #808080;\"> &lt;\/Directory&gt;<\/span><\/p>\n<div><\/div>\n<div>In the Old Apache servers add &#8220;-&#8221; in the Indexes<\/div>\n<div><\/div>\n<div><b>Options -Indexes\u00a0FollowSymLinks<\/b><\/div>\n<div><b>\u00a0<\/b><\/div>\n<p>Save the settings and restart the Apache Service<\/p>\n<p><strong>#systemctl restart httpd.service<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to disable directory browsing in Apache httpd.conf in CentOS Fedora Linux Ubuntu Redhat Apache2 Disable Apache directory browsing In the latest Apache Fedora Servers, edit the httpd.conf and remove&#8230; <a href=\"https:\/\/www.melberi.com\/linuxadmin\/apache\/disable-directory-browsing\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[102],"tags":[],"class_list":["post-46","post","type-post","status-publish","format-standard","hentry","category-apache"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"How to disable directory browsing in Apache httpd.conf in CentOS Fedora Linux Ubuntu Redhat Apache2 Disable Apache directory browsing In the latest Apache Fedora Servers, edit the httpd.conf and remove the Indexes form the default document root access. #vim \/etc\/httpc\/conf\/httpd.conf # Further relax access to the default document root: # Possible values for\" \/>\n\t<meta name=\"robots\" content=\"max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n\t<meta name=\"author\" content=\"admin\"\/>\n\t<meta name=\"msvalidate.01\" content=\"F5B964E0B63F681BBDE95AB72193D75E\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/www.melberi.com\/linuxadmin\/apache\/disable-directory-browsing\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/apache\\\/disable-directory-browsing#article\",\"name\":\"Disable directory browsing in Apache httpd.conf - Linux How To\",\"headline\":\"Disable directory browsing in Apache httpd.conf\",\"author\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/author\\\/admin#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/wp-content\\\/uploads\\\/sites\\\/3\\\/2021\\\/06\\\/MelB.png\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/#articleImage\",\"width\":320,\"height\":320},\"datePublished\":\"2017-10-10T04:43:00+00:00\",\"dateModified\":\"2017-10-10T06:38:23+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/apache\\\/disable-directory-browsing#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/apache\\\/disable-directory-browsing#webpage\"},\"articleSection\":\"APACHE\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/apache\\\/disable-directory-browsing#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/category\\\/apache#listItem\",\"name\":\"APACHE\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/category\\\/apache#listItem\",\"position\":2,\"name\":\"APACHE\",\"item\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/category\\\/apache\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/apache\\\/disable-directory-browsing#listItem\",\"name\":\"Disable directory browsing in Apache httpd.conf\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/apache\\\/disable-directory-browsing#listItem\",\"position\":3,\"name\":\"Disable directory browsing in Apache httpd.conf\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/category\\\/apache#listItem\",\"name\":\"APACHE\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/#organization\",\"name\":\"Linux How To\",\"url\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/wp-content\\\/uploads\\\/sites\\\/3\\\/2021\\\/06\\\/MelB.png\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/apache\\\/disable-directory-browsing\\\/#organizationLogo\",\"width\":320,\"height\":320},\"image\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/apache\\\/disable-directory-browsing\\\/#organizationLogo\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/author\\\/admin#author\",\"url\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/author\\\/admin\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/apache\\\/disable-directory-browsing#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1ee7acbcab1a0ae6b35481c34cd31ee5c4d15292f5a1e069321cd34f1ceccd11?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"admin\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/apache\\\/disable-directory-browsing#webpage\",\"url\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/apache\\\/disable-directory-browsing\",\"name\":\"Disable directory browsing in Apache httpd.conf - Linux How To\",\"description\":\"How to disable directory browsing in Apache httpd.conf in CentOS Fedora Linux Ubuntu Redhat Apache2 Disable Apache directory browsing In the latest Apache Fedora Servers, edit the httpd.conf and remove the Indexes form the default document root access. #vim \\\/etc\\\/httpc\\\/conf\\\/httpd.conf # Further relax access to the default document root: # Possible values for\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/apache\\\/disable-directory-browsing#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/author\\\/admin#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/author\\\/admin#author\"},\"datePublished\":\"2017-10-10T04:43:00+00:00\",\"dateModified\":\"2017-10-10T06:38:23+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/#website\",\"url\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/\",\"name\":\"Linux How To\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.melberi.com\\\/linuxadmin\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Disable directory browsing in Apache httpd.conf - Linux How To","description":"How to disable directory browsing in Apache httpd.conf in CentOS Fedora Linux Ubuntu Redhat Apache2 Disable Apache directory browsing In the latest Apache Fedora Servers, edit the httpd.conf and remove the Indexes form the default document root access. #vim \/etc\/httpc\/conf\/httpd.conf # Further relax access to the default document root: # Possible values for","canonical_url":"https:\/\/www.melberi.com\/linuxadmin\/apache\/disable-directory-browsing","robots":"max-snippet:-1, max-image-preview:large, max-video-preview:-1","keywords":"","webmasterTools":{"msvalidate.01":"F5B964E0B63F681BBDE95AB72193D75E","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.melberi.com\/linuxadmin\/apache\/disable-directory-browsing#article","name":"Disable directory browsing in Apache httpd.conf - Linux How To","headline":"Disable directory browsing in Apache httpd.conf","author":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/author\/admin#author"},"publisher":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/www.melberi.com\/linuxadmin\/wp-content\/uploads\/sites\/3\/2021\/06\/MelB.png","@id":"https:\/\/www.melberi.com\/linuxadmin\/#articleImage","width":320,"height":320},"datePublished":"2017-10-10T04:43:00+00:00","dateModified":"2017-10-10T06:38:23+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/apache\/disable-directory-browsing#webpage"},"isPartOf":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/apache\/disable-directory-browsing#webpage"},"articleSection":"APACHE"},{"@type":"BreadcrumbList","@id":"https:\/\/www.melberi.com\/linuxadmin\/apache\/disable-directory-browsing#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/www.melberi.com\/linuxadmin\/#listItem","position":1,"name":"Home","item":"https:\/\/www.melberi.com\/linuxadmin\/","nextItem":{"@type":"ListItem","@id":"https:\/\/www.melberi.com\/linuxadmin\/category\/apache#listItem","name":"APACHE"}},{"@type":"ListItem","@id":"https:\/\/www.melberi.com\/linuxadmin\/category\/apache#listItem","position":2,"name":"APACHE","item":"https:\/\/www.melberi.com\/linuxadmin\/category\/apache","nextItem":{"@type":"ListItem","@id":"https:\/\/www.melberi.com\/linuxadmin\/apache\/disable-directory-browsing#listItem","name":"Disable directory browsing in Apache httpd.conf"},"previousItem":{"@type":"ListItem","@id":"https:\/\/www.melberi.com\/linuxadmin\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/www.melberi.com\/linuxadmin\/apache\/disable-directory-browsing#listItem","position":3,"name":"Disable directory browsing in Apache httpd.conf","previousItem":{"@type":"ListItem","@id":"https:\/\/www.melberi.com\/linuxadmin\/category\/apache#listItem","name":"APACHE"}}]},{"@type":"Organization","@id":"https:\/\/www.melberi.com\/linuxadmin\/#organization","name":"Linux How To","url":"https:\/\/www.melberi.com\/linuxadmin\/","logo":{"@type":"ImageObject","url":"https:\/\/www.melberi.com\/linuxadmin\/wp-content\/uploads\/sites\/3\/2021\/06\/MelB.png","@id":"https:\/\/www.melberi.com\/linuxadmin\/apache\/disable-directory-browsing\/#organizationLogo","width":320,"height":320},"image":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/apache\/disable-directory-browsing\/#organizationLogo"}},{"@type":"Person","@id":"https:\/\/www.melberi.com\/linuxadmin\/author\/admin#author","url":"https:\/\/www.melberi.com\/linuxadmin\/author\/admin","name":"admin","image":{"@type":"ImageObject","@id":"https:\/\/www.melberi.com\/linuxadmin\/apache\/disable-directory-browsing#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/1ee7acbcab1a0ae6b35481c34cd31ee5c4d15292f5a1e069321cd34f1ceccd11?s=96&d=mm&r=g","width":96,"height":96,"caption":"admin"}},{"@type":"WebPage","@id":"https:\/\/www.melberi.com\/linuxadmin\/apache\/disable-directory-browsing#webpage","url":"https:\/\/www.melberi.com\/linuxadmin\/apache\/disable-directory-browsing","name":"Disable directory browsing in Apache httpd.conf - Linux How To","description":"How to disable directory browsing in Apache httpd.conf in CentOS Fedora Linux Ubuntu Redhat Apache2 Disable Apache directory browsing In the latest Apache Fedora Servers, edit the httpd.conf and remove the Indexes form the default document root access. #vim \/etc\/httpc\/conf\/httpd.conf # Further relax access to the default document root: # Possible values for","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/#website"},"breadcrumb":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/apache\/disable-directory-browsing#breadcrumblist"},"author":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/author\/admin#author"},"creator":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/author\/admin#author"},"datePublished":"2017-10-10T04:43:00+00:00","dateModified":"2017-10-10T06:38:23+00:00"},{"@type":"WebSite","@id":"https:\/\/www.melberi.com\/linuxadmin\/#website","url":"https:\/\/www.melberi.com\/linuxadmin\/","name":"Linux How To","inLanguage":"en-US","publisher":{"@id":"https:\/\/www.melberi.com\/linuxadmin\/#organization"}}]}},"aioseo_meta_data":{"post_id":"46","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-03-11 17:26:44","updated":"2026-10-21 17:36:07","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"_links":{"self":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts\/46","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/comments?post=46"}],"version-history":[{"count":4,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts\/46\/revisions"}],"predecessor-version":[{"id":626,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/posts\/46\/revisions\/626"}],"wp:attachment":[{"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/media?parent=46"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/categories?post=46"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.melberi.com\/linuxadmin\/wp-json\/wp\/v2\/tags?post=46"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}