{"id":2131,"date":"2021-06-10T16:34:33","date_gmt":"2021-06-10T13:34:33","guid":{"rendered":"https:\/\/www.scalahosting.com\/kb\/?p=2131"},"modified":"2021-06-10T16:41:33","modified_gmt":"2021-06-10T13:41:33","slug":"what-is-a-web-config-file","status":"publish","type":"post","link":"https:\/\/www.scalahosting.com\/kb\/what-is-a-web-config-file\/","title":{"rendered":"What is a web.config File?"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">The web.config file can generally be seen on systems that make<\/span><b> use of Windows hosting. It is a configuration file that helps guide the Internet Information Services<\/b> <i><span style=\"font-weight: 400;\">(IIS)<\/span><\/i><span style=\"font-weight: 400;\"> and <\/span><b>ASP.NET modules.<\/b><span style=\"font-weight: 400;\"> The file allows quick universal configuration changes to be made to entire servers.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">You can modify the web.config file to behave in different ways for each directory you place it in. Multiple copies may exist, each in its <\/span><b>unique location <\/b><i><span style=\"font-weight: 400;\">(directory).<\/span><\/i><\/p>\n<p><span style=\"font-weight: 400;\">If a web.config file does not exist you can create one from scratch. Use the File Editor from your <\/span><a href=\"https:\/\/www.scalahosting.com\/spanel.html\"><b>web hosting control panel<\/b><\/a><span style=\"font-weight: 400;\"> and create a plain text file. Edit the contents and save it as \u201cweb.config.\u201d<\/span><\/p>\n<p><b>Some uses of the web.config file include;<\/b><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">URL redirection<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Hotlink protection<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Directory password protection<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Establishing custom error pages<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">If you do not wish to use the web.config file, many settings can alternately be done in <\/span><b>your Plesk control panel.<\/b><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The web.config file can generally be seen on systems that make use of Windows hosting. It is a configuration file that helps guide the Internet Information Services (IIS) and ASP.NET modules. The file allows quick universal configuration changes to be made to entire servers. You can modify the web.config file to behave in different ways [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":""},"categories":[40],"tags":[],"class_list":["post-2131","post","type-post","status-publish","format-standard","hentry","category-security"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/2131","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/comments?post=2131"}],"version-history":[{"count":1,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/2131\/revisions"}],"predecessor-version":[{"id":2132,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/posts\/2131\/revisions\/2132"}],"wp:attachment":[{"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/media?parent=2131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/categories?post=2131"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scalahosting.com\/kb\/wp-json\/wp\/v2\/tags?post=2131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}