IIS settings page announcement

  1. Disable IIS original site
  2. IIS add in a new site, and the domain name and port of the original site consistent
  3. Add announcement prompted the page, such as: index.html
  4. New web.config file and set the web.config
  5. 1   <system.web>
    2     <compilation debug="true" targetFramework="4.0"/>
    3    <customErrors mode="On" defaultRedirect="/index.html">
    4    </customErrors>
    5   </system.web>
    View Code
  6. IIS> New Site> Error page> 404 status settings: response actions
    1. Choose to perform URL on this site
    2. Set the URL (relative to site root), such as: /index.html

 

Guess you like

Origin www.cnblogs.com/xia1106811/p/11614985.html