您的位置:首页 > 运维架构 > Apache

apache点NET环境

2015-11-19 14:43 387 查看
1、首先 下载一个mod_aspdotnet-2.2.0.2006-setup-r2.msi

2、安装好后在apache的moudles目录会生成一个mod_aspdotnet.so文件

3、修改httpd.conf 在文件的末尾加上下面代码

代码如下复制代码
#asp.net
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>
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>

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: