2.安装mod_aspdotnet.so,这个支持apache2.2的不好找,附上http://xiazai.jb51.net/200912/tools/mod_aspdotnet-2.2.0.2006-setup-r2.rar
apache2.0的,可以到网上找,很多。
3.修改配置
打开httpd.conf
在最后添加
LoadModule aspdotnet_module “modules/mod_aspdotnet.so”
AddHandler asp.net asax ascx ashx asmx aspx axd config cs csproj licx rem resources resx soap vb vbproj vsdisco webinfo
<IfModule mod_aspdotnet.cpp>
# For all virtual ASP.NET webs, we need the aspnet_client files
# to serve the client-side helper scripts.
AliasMatch /aspnet_client/system_web/(\d+)_(\d+)_(\d+)_(\d+)/(.*) \”C:/Windows/Microsoft.NET/Framework/v$1.$2.$3/ASP.NETClientFiles/$4″
<Directory “C:/Windows/Microsoft.NET/Framework/v*/ASP.NETClientFiles”>
Options FollowSymlinks
Order allow,deny
Allow from all
</Directory>
</IfModule>
4.在你所在的虚拟主机或虚拟目录加上
AspNetMount / “d:/www”
记得d:/www是你虚拟主机或虚拟目录的目录,这样你所在的目录或者虚拟主机就可以支持.net的