Difference between revisions of "HTML as ASP"

From Hostek.com Wiki
Jump to: navigation, search
(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...")
 
 
Line 24: Line 24:
 
##choose Yes
 
##choose Yes
 
#Done
 
#Done
 +
 +
[[category:Windows-VPS]]

Latest revision as of 00:00, 29 June 2012


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:

  1. Open IIS
  2. Expand Server name in IIS
  3. Click Sites
  4. Find the site you want to change
  5. Double click the site in the Center Pane
  6. Right click Handler Mappings
    1. choose Open Feature
  7. Find the ASPClassic, *.asp entry
  8. Right Click
    1. choose Edit on that entry
  9. Copy the Executable entry, normally like %windir%\system32\inetsrv\asp.dll
  10. In the right pane click Add Script Map
  11. For the Request path enter: *.html
  12. For the Executable enter: %windir%\system32\inetsrv\asp.dll (assuming that is what you copied above)
  13. For the Name enter: HTMLasAsp
  14. Click Ok
  15. When prompted for Do you want to Allow...
    1. choose Yes
  16. Done