Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <h2>The Easy Way</h2> <p>If your IIS 7 web server doesn't already have it, install the <a href="http://www.iis.net/download/administrationpack" rel="noreferrer">IIS 7.0 Administration Pack</a> from Microsoft.</p> <p>Navigate to the root web server name in IIS, and open the <code>Configuration Editor</code> (part of the Administration Pack). Change the dropdown to <code>system.webServer/httpErrors</code>, right-click on <code>defaultPath</code>, and choose <code>'defaultPath' Attribute -&gt; Unlock Attribute</code>.</p> <p><img src="https://i.stack.imgur.com/lOyPk.png" alt="Unlocking the defaultPath attribute"></p> <p>Then try to change the custom error handler page again. Navigate to your site, open <code>Error Pages</code> under the IIS group, click <code>Edit Feature Settings</code> on the right, select <code>Custom error pages</code> and finally, put in your path for the default page.</p> <p><img src="https://i.stack.imgur.com/AXP3p.png" alt="Setting custom error pages"></p> <p>No lock error this time.</p> <p>I originally tried to unlock this attribute at the web site level but was prevented, so be aware you may have to go all the way to the root of the IIS tree, the web server itself.</p> <h2>The Manual Way</h2> <p>I know you can accomplish all this by direct editing in notepad of the appropriate config file on the web server. And that may be required for your particular web hosting environment or company production web server change protocols. But why make it complicated if it doesn't need to be? Plus, this way you can do it in the GUI, and compare the before and after to see what changes you truly have to make. But if you MUST do it manually, then:</p> <p>Open the file <code>%windir%\System32\inetsrv\config\applicationHost.config</code> in Notepad. Run Notepad as administrator if you're having problems.</p> <p><strong>Pro tip: Do not use notepad++ to edit applicationHost.config. You'll end up secretly and silently saving a 32-bit copy of the file that's in a different folder than the one IIS looks in (due to Windows, not np++) without actually affecting the file you wish to change.</strong></p> <p>You'll see something like this:</p> <pre><code>&lt;httpErrors lockAttributes="allowAbsolutePathsWhenDelegated,defaultPath"&gt; </code></pre> <p>Remove the <code>,defaultPath</code> section and save.</p> <p>You will be able to make the changes you need.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload