【写于开篇】
真心感谢WAMP的存在,它让PHP环境的搭建变成了几分钟的事。
可是,ASP怎么办?
【准备工作】
【一、编写 httpd-ahtml.conf文件,放到:\Apache\conf\extra\中】下载ASP组件:免积分点击下载
此时,我默认你已经装了WAMP,WAMP是一款快速搭建PHP环境的软件,有兴趣:点击下载
################################################## # 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”】
【三、在httpd.conf中添加 : Include conf/extra/httpd-ahtml.conf 】这个ActiveHTML就是上面下载的ASP组件。
这里的路径请自行更换。
重启下就好了。