导航:
论坛 -> 移动应用开发
斑竹:flyers,iamdream
作者:
2006/4/8 16:35:52
标题:
.net web 服务器可以用 apache 吗?
浏览:1623
加入我的收藏
楼主:
各位大虾: 小弟刚刚接触.net,学习时因为我的机器上装的时 home版本的xp,装不上iis,只能装 apache。 请问: 1、怎么在XP home 上运行iis? 2、apache能不能支持。net?该怎么配置?
----------------------------------------------
努力码字。
作者:
2006/4/8 17:02:23
1楼:
Home 版好像不能用iis,用win2k 或 Xp Pro吧 apache 支付.net 下载个小包就可以了mod_aspdotnet http://www.apache.org/dist/httpd/mod_aspdotnet/mod_aspdotnet-2.0.0.msi下载 为了便于管理,我们在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 <IfModule mod_aspdotnet.cpp> # 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 <Directory "D:/Program Files/Apache Group/Apache2/htdocs/active"> Options FollowSymlinks ExecCGI Order allow,deny Allow from all DirectoryIndex Default.htm Default.aspx </Directory> # 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> 其中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下慢。
----------------------------------------------
-DELPHI盒子版权所有-
作者:
2006/4/11 11:27:36
2楼:
感谢楼上的。 谢谢。
----------------------------------------------
努力码字。