让WAMP支持ASP

【写于开篇】

真心感谢WAMP的存在,它让PHP环境的搭建变成了几分钟的事。

可是,ASP怎么办?

【准备工作】

下载ASP组件:免积分点击下载

此时,我默认你已经装了WAMP,WAMP是一款快速搭建PHP环境的软件,有兴趣:点击下载

【一、编写 httpd-ahtml.conf文件,放到:\Apache\conf\extra\中

################################################## 
# Uncomment the following lines if you want 
# to use Authorization environment-variables 
# You may implement you own user 
# authentication using LOGON_USER and 
# LOGON_PASSWORD in your scripts (Login.asp) 
################################################## 
LoadModule rewrite_module modules/mod_rewrite.so 
RewriteEngine On 
RewriteCond %{HTTP:Authorization} ^(.*)$ [NC] 
RewriteRule /.* - [E=HTTP_AUTHORIZATION:%1] 
################################################## 

# Supports Imagemaps 
AddHandler imap-file map 

################################################## 
# Do not allow access to global.asa 
################################################## 
<files ~ "global.asa"> 
Order allow,deny 
Deny from all 
Satisfy All 
</files> 


################################################## 
# Add ActiveHTML-Handler 其中”D:/wamp/bin/ActiveHTML“ 为ActiveHTML释放的目录,需自己修改。 
################################################## 
ScriptAlias /asp_bin "D:/wamp/bin/ActiveHTML" 
Action ActiveHTML "/asp_bin/AHTML.exe" 
AddHandler ActiveHTML .asp 
DirectoryIndex index.asp default.asp 


################################################## 
# Add Sampledirectory Alias 其中"D:/wamp/www/asp/"为asp文件所在的目录,需自己修改。 
################################################## 
<directory "D:/wamp/bin/ActiveHTML"> 
Options Indexes MultiViews FollowSymLinks 
AllowOverride None 
Order allow,deny 
Allow from all 
</directory> 

Alias /asp/ "D:/wamp/www/asp/" 
<directory "D:/wamp/www/asp/"> 
Options Indexes MultiViews FollowSymLinks 
AllowOverride all 
Order allow,deny 
Allow from all 
</directory> 

【二、安装ActiveHTML到D:\wamp\bin\ActiveHTML,然后点击“注册.bat”

这个ActiveHTML就是上面下载的ASP组件。

这里的路径请自行更换。


【三、在httpd.conf中添加 : Include conf/extra/httpd-ahtml.conf 】

重启下就好了。

评论 8
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值