HTML as ASP
From Hostek.com Wiki
Revision as of 23:59, 28 June 2012 by Briana (Talk | contribs) (Created page with "__FORCETOC__ ==Steps to process HTML as ASP== Sometimes you may want to process ASP or process PHP code inside your .html files. To do this, follow these simple steps for W...")
Contents
Steps to process HTML as ASP
Sometimes you may want to process ASP or process PHP code inside your .html files. To do this, follow these simple steps for Windows 2008/IIS 7.5 servers:
- Open IIS
- Expand Server name in IIS
- Click Sites
- Find the site you want to change
- Double click the site in the Center Pane
- Right click Handler Mappings
- choose Open Feature
- Find the ASPClassic, *.asp entry
- Right Click
- choose Edit on that entry
- Copy the Executable entry, normally like %windir%\system32\inetsrv\asp.dll
- In the right pane click Add Script Map
- For the Request path enter: *.html
- For the Executable enter: %windir%\system32\inetsrv\asp.dll (assuming that is what you copied above)
- For the Name enter: HTMLasAsp
- Click Ok
- When prompted for Do you want to Allow...
- choose Yes
- Done