All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
如何用PHP制作静态网站的模板框架_php资料_编程技术
浅谈几个SQL的日志概念_[SQL,Server教程]
解决SQL Server导入数据时id自增属性丢失_[SQL Server教程]
Asp.Net2.0中实现多任务异步页的一点提示_.net资料_编程技术
用户需要怎样的网站设计_研究探讨_seo学堂
PHP技巧:动态网页技术PHP中关于类的几点使用技巧_[PHP教程]
详细介绍动态网页PHP预定义变量之服务器变量_php资料_编程技术
教你用PHP写MySQL数据库的用户认证系统_php资料_编程技术
SQL,Server单引号的两种处理技巧_[SQL,Server教程]
PHP日期时间函数的高级应用技巧_php资料_编程技术
Reading number is top 10 pictures
美丽的桂林风光1
The money of more than 100 countries and regions18
The real super beauty4
In the world the most mysterious 21 place landscape4
Small QiShu -- ShuangShuangPan2
The real super beauty1
世界五大海盗
Sora aoi on twitter5
Distribution of wealth in China survey status report
毕姥爷事件,告诉你6条真理
Download software ranking
美女游泳记
Boxer Classic video2
Eclipse 4.2.2 For Win64
网页特效实例大全
Sora aoi 120 minutes
徐若瑄成名作“魔鬼天使”
网络管理员第三版
Eclipse-CALMSANNY (second edition)
Boxer's Top ten classic battle2
Ashlynn Video5
aaa published in(发表于) 2013/12/15 8:52:59 Edit(编辑)
彻底放弃IIS让Apache也支持ASP.NET_.net资料_编程技术

彻底放弃IIS让Apache也支持ASP.NET_.net资料_编程技术

彻底放弃IIS让Apache也支持ASP.NET_.net资料_编程技术-你的首页-uuhomepage.com

  Apache是目前广泛使用的一种网络服务器程序,不仅在UNIX/Linux平台上被大量使用,而且在Windows平台上也有许多站点放弃了IIS而转向Apache。.NET是微软推出的功能强大的开发技术,其目标就是与Java抗衡。ASP.NET非常适合于中小企业的Web应用,其性能较ASP3.0有了极大的提高。下面就介绍让Apache支持ASP.NET的办法。


  首先,必须要有Windows环境和.NET Framework的支持。此外还建议安装.NET开发工具如.NET Framework SDK或者VisualStudio.NET。需要注意的是Windows的版本应为2000、2003和XP。Win9X系列不能安装.NET Framework。然后需要安装Apache。应该使用Win32平台的Apache,版本2.0以上。推荐使用2.0.51版本。


  下面要下载并安装Apache环境下的ASP.NET模块。下载地址:http://www.apache.org/dist/httpd/mod_aspdotnet/mod_aspdotnet-2.0.0.msi下载完成后双击打开,一路Next即可安装完成。


  为了便于管理,我们在htdocs目录下新建一个active目录,专门存放.aspx文件。现在需要对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


  


  # Mount the ASP.NET example application


  AspNetMount /active "D:/Program Files/Apache Group/Apache2/htdocs/active"


  # Map all requests for /active to the application files


  Alias /active "D:/Program Files/Apache Group/Apache2/htdocs/active"


  # Allow asp.net scripts to be executed in the active example


  



  Options FollowSymlinks ExecCGI


  Order allow,deny


  Allow from all


  DirectoryIndex Default.htm Default.aspx


  


  # 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"


  


  "C:/Windows/Microsoft.NET/Framework/v*/ASP.NETClientFiles">


  Options FollowSymlinks


  Order allow,deny


  Allow from all


  


    


  其中D:/Program Files/Apache Group/Apache2是Apache的安装目录,应根据实际情况更改。现在可以在active目录下放上ASP.NET探针。重启Apache之后,即可体验Apache下的ASP.NET了。


  由于IIS和Apache下的ASP.NET都是运行在Common Language Runtime(CRL)的基础上,因此Apache环境下的ASP.NET程序的运行速度不会比在IIS下慢。





添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.