欢迎来到代码驿站!

Linux

当前位置:首页 > 服务器 > Linux

apache下支持asp.net的实现方法

时间:2021-06-03 09:11:22|栏目:Linux|点击:
1.安装.netframework(具体版本可以自己选,建议装netframework3.5sp1)

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的

上一篇:CentOS7.4下 安装JDK1.8的图文教程

栏    目:Linux

下一篇:Logrotate实现Catalina.out日志每俩小时切割示例

本文标题:apache下支持asp.net的实现方法

本文地址:http://www.codeinn.net/misctech/134513.html

推荐教程

广告投放 | 联系我们 | 版权申明

重要申明:本站所有的文章、图片、评论等,均由网友发表或上传并维护或收集自网络,属个人行为,与本站立场无关。

如果侵犯了您的权利,请与我们联系,我们将在24小时内进行处理、任何非本站因素导致的法律后果,本站均不负任何责任。

联系QQ:914707363 | 邮箱:codeinn#126.com(#换成@)

Copyright © 2020 代码驿站 版权所有