1、首先 下载一个mod_dotnet-2.2.0.2006-setup-r2.msi
2、安装好后在apache的moudles目录会生成一个mod_aspdotnet.so文件
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 resxsoap vb vbproj vsdisco webinfo <IfModule mod_aspdotnet.cpp> AspNetMount / "D:/xampp/xampp/htdocs/" Alias / "D:/xampp/xampp/htdocs/" <Directory "D:/xampp/xampp/htdocs/"> Options FollowSymlinks ExecCGI Order allow,deny Allow from all DirectoryIndex index.htm index.aspx </Directory> 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> |