Deprecated: Function create_function() is deprecated in /home2/blogwebhostingbu/public_html/wp-content/plugins/facebook-like-box-responsive/facebook-like-box.php on line 29
{"id":1252,"date":"2011-02-08T16:45:57","date_gmt":"2011-02-08T16:45:57","guid":{"rendered":"http:\/\/www.webhostingbuzz.com\/blog\/?p=1252"},"modified":"2011-02-08T16:52:28","modified_gmt":"2011-02-08T16:52:28","slug":"how-reseller-or-vps-can-change-directory-indexing-default","status":"publish","type":"post","link":"https:\/\/blog.webhostingbuzz.com\/2011\/02\/08\/how-reseller-or-vps-can-change-directory-indexing-default\/","title":{"rendered":"How reseller or VPS can change directory indexing default"},"content":{"rendered":"

A few days ago I explained how to use cPanel’s Index Manager function to prevent or alter directory indexing<\/a>. Today I’ll tell you how a reseller or VPS (Virtual Private Server) hosting account can change this default for all new cPanel accounts.<\/p>\n

Reseller<\/strong><\/p>\n

    \n
  1. First, create a text file. In that text file, paste the following line:\n

    Options -Indexes<\/strong><\/li>\n

  2. Save that text file as “.htaccess”.\n

    If your text editor won’t let you choose that filename, save it as htaccess.txt. Then, in your file explorer select that file icon and change the filename to “.htaccess”. If your system still won’t allow that, then leave it as is and change the filename after you upload the file to your web hosting account.<\/li>\n

  3. Create a \/public_html directory within your skeleton directory. (If you followed my instructions in my earlier article<\/a> to create a default web page, then this directory already exists.<\/li>\n
  4. Upload the .htaccess file to \/cpanel3-skel\/public_html.<\/li>\n<\/ol>\n

    Any newly-created cPanel account I create will now have directory indexing disabled for all web directories. If the new cPanel account holder wants a different setting, he\/she may use cPanel’s Index Manager function to enable directory indexing.
    \n<\/strong><\/p>\n

    VPS<\/strong><\/p>\n

    VPS accounts have a higher level of control than resellers, and can make server config changes. A VPS account can change the default for directory indexing to disabled.<\/p>\n

      \n
    1. Login to VPS as root.<\/li>\n
    2. Service Configuration > Apache Configuration > Global Configuration.<\/li>\n
    3. Under “Directory ‘\/’ Options” uncheck “Indexes”.<\/li>\n<\/ol>\n

      This disables directory indexing for all accounts under the VPS. If a cPanel account holder wants a different setting, he\/she may use cPanel’s Index Manager function to enable directory indexing.<\/p>\n","protected":false},"excerpt":{"rendered":"

      A few days ago I explained how to use cPanel’s Index Manager function to prevent or alter directory indexing. Today I’ll tell you how a reseller or VPS (Virtual Private Server) hosting account can change this default for all new cPanel accounts. Reseller First, create a text file. In that text file, paste the following […]<\/p>\n","protected":false},"author":134,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[143,74],"tags":[],"yoast_head":"\nHow reseller or VPS can change directory indexing default - WebHostingBuzz US Blog<\/title>\n<link rel=\"canonical\" href=\"https:\/\/www.webhostingbuzz.com\/blog\/2011\/02\/08\/how-reseller-or-vps-can-change-directory-indexing-default\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How reseller or VPS can change directory indexing default - WebHostingBuzz US Blog\" \/>\n<meta property=\"og:description\" content=\"A few days ago I explained how to use cPanel’s Index Manager function to prevent or alter directory indexing. Today I’ll tell you how a reseller or VPS (Virtual Private Server) hosting account can change this default for all new cPanel accounts. Reseller First, create a text file. In that text file, paste the following […]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webhostingbuzz.com\/blog\/2011\/02\/08\/how-reseller-or-vps-can-change-directory-indexing-default\/\" \/>\n<meta property=\"og:site_name\" content=\"WebHostingBuzz US Blog\" \/>\n<meta property=\"article:published_time\" content=\"2011-02-08T16:45:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2011-02-08T16:52:28+00:00\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data1\" content=\"1 minute\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.webhostingbuzz.com\/blog\/#website\",\"url\":\"https:\/\/www.webhostingbuzz.com\/blog\/\",\"name\":\"WebHostingBuzz US Blog\",\"description\":\"Hosting, hosting, more hosting and a little of everything else\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/www.webhostingbuzz.com\/blog\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webhostingbuzz.com\/blog\/2011\/02\/08\/how-reseller-or-vps-can-change-directory-indexing-default\/#webpage\",\"url\":\"https:\/\/www.webhostingbuzz.com\/blog\/2011\/02\/08\/how-reseller-or-vps-can-change-directory-indexing-default\/\",\"name\":\"How reseller or VPS can change directory indexing default - WebHostingBuzz US Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.webhostingbuzz.com\/blog\/#website\"},\"datePublished\":\"2011-02-08T16:45:57+00:00\",\"dateModified\":\"2011-02-08T16:52:28+00:00\",\"author\":{\"@id\":\"https:\/\/www.webhostingbuzz.com\/blog\/#\/schema\/person\/b4eacaf6cae2f9666e137b91e8d83a71\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.webhostingbuzz.com\/blog\/2011\/02\/08\/how-reseller-or-vps-can-change-directory-indexing-default\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.webhostingbuzz.com\/blog\/2011\/02\/08\/how-reseller-or-vps-can-change-directory-indexing-default\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.webhostingbuzz.com\/blog\/2011\/02\/08\/how-reseller-or-vps-can-change-directory-indexing-default\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.webhostingbuzz.com\/blog\/2011\/02\/08\/how-reseller-or-vps-can-change-directory-indexing-default\/\",\"url\":\"https:\/\/www.webhostingbuzz.com\/blog\/2011\/02\/08\/how-reseller-or-vps-can-change-directory-indexing-default\/\",\"name\":\"How reseller or VPS can change directory indexing default\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.webhostingbuzz.com\/blog\/#\/schema\/person\/b4eacaf6cae2f9666e137b91e8d83a71\",\"name\":\"Alan Burns\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.webhostingbuzz.com\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e051b4a10a90049d6e913ff8ab111a1a?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e051b4a10a90049d6e913ff8ab111a1a?s=96&r=g\",\"caption\":\"Alan Burns\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/blog.webhostingbuzz.com\/wp-json\/wp\/v2\/posts\/1252"}],"collection":[{"href":"https:\/\/blog.webhostingbuzz.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.webhostingbuzz.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.webhostingbuzz.com\/wp-json\/wp\/v2\/users\/134"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.webhostingbuzz.com\/wp-json\/wp\/v2\/comments?post=1252"}],"version-history":[{"count":0,"href":"https:\/\/blog.webhostingbuzz.com\/wp-json\/wp\/v2\/posts\/1252\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.webhostingbuzz.com\/wp-json\/wp\/v2\/media?parent=1252"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.webhostingbuzz.com\/wp-json\/wp\/v2\/categories?post=1252"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.webhostingbuzz.com\/wp-json\/wp\/v2\/tags?post=1252"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}