职位关键字 工作地点
工作名称 公司名称 校园招聘
中国最好的工作搜索引擎!
  回复留言  
  今天装了个apache http server,但是不会用啊
作者: tongdengquan  01-01 08:00   回复  
 那位英雄告诉我怎么在apache http server环境下玩asp.net啊?多谢了!

  回复:今天装了个apache http server,但是不会用啊
作者: 天道第一  01-01 08:00   回复  
 首先,必须要有Windows环境和.NET Framework的支持。此外还建议安装.NET开发工具如.NET Framework SDK或者VisualStudio.NET。需要注意的是Windows的版本应为2000、2003和XP。Win9X系列不能安装.NET Framework。然后需要安装Apache。应该使用Win32平台的Apache,版本2.0以上。下载地址:http://apache.justdn.org...,具体的安装过程请参阅其他文章,本文不再赘述。



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



为了便于管理,我们在htdocs目录下新建一个asp目录,专门存放.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/asp"

# Map all requests for /active to the application files



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

# 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的安装目录,应根据实际情况更改。现在可以在asp目录下放上ASP.NET探针。重启Apache之后,即可体验Apache下的ASP.NET了。



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

  回复:今天装了个apache http server,但是不会用啊
作者: yytoday  06-19 17:13   回复  
  apache 不能用asp.net

apache用下php还差不多

  回复:今天装了个apache http server,但是不会用啊
作者: cn_nj_zj  06-19 17:13   回复  
  http://www.lukfor.com/ApacheMenu_zh_CN/

参考资料:http://www.lukfor.com/ApacheMenu_zh_CN/

标 题:
内 容:
用户名:
 游客
 
 
Copyright©2005-2007, 版权所有 WWW.JOBMET.COM
ICP证:京ICP备06019556号