Open up Internet Services Manager. In IIS / PWS 4.0, this is on the Start Menu under Windows NT 4.0 Option Pack / Internet Services Manager. In IIS 5.0 / Windows 2000, this is under Administrative Tools in the control panel. (I have a shortcut to this tool on my taskbar; if you do a lot of work in the MMC tool for IIS, you may want to do the same.)
To change/add document names, for example if you want
http://www.yoursite.com/ to display that way, but actually load
http://www.yoursite.com/my_goofy_file.asp, then follow these steps:
- Right-click 'Default Web Site' (or the application in question)
- Choose 'Properties'
- On the 'Documents' tab, make sure 'Enable Default Document' is checked
- Select the 'Add...' button, type in the filename you wish to override default.asp
- Click OK, then click the up arrow next to the file list to push your new file to the top of the list
- Click Apply, OK, and close IISAdmin (if you are asked to save console settings, choose Yes).
To add a documentation extension, for example if you want
<file>.inc to actually run as an ASP file and be parsed by ASP.DLL, then follow these steps:
- Right-click 'Default Web Site' (or the application in question)
- Choose 'Properties'
- On the 'Home Directory' tab, choose 'Configuration...'
- On the 'Mappings' tab, choose 'Add'
- Under 'Executable' browse for ASP.DLL (located in %system%\inetsrv\)
- For 'Extension' type in the extension you wish to use (including the leading period)
- The only verbs you should need are GET and POST (see MSDN for information on HEAD, OPTIONS, TRACE etc.)
- Click OK, Apply, OK, and close IISAdmin (if you are asked to save console settings, choose Yes).