Difference between revisions of "HTML as ASP"
From Hostek.com Wiki
(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
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