日期:2014-05-17  浏览次数:21105 次

apache+asp.net 求教
#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 "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\aspx"
# Map all requests for /active to the application files
Alias /active "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\aspx"
# Allow asp.net scripts to be executed in the active example
<Directory "C:\Program Files\Apache Software Foundation\Apache2.2\htdocs\aspx">
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>
最近在XP上安装了Apache2.2.15 和 mod_aspdotnet2.2.0,服务器可以正常启动,其他都没问题,但是每当请求 .aspx文件时 ,就会出错,说是服务器内部配置错误,查看错误日志如下:
mod_aspdotnet: No AspNetMount URI for request: /Default.aspx
那个路径是我的apache安装路径,aspx是自己建的文件夹 请高手帮帮解决一下问题。

------解决方案--------------------
既然都用asp.net了,咋不用iis呢?
看提示好像是映射路径不对。
------解决方案--------------------
别费劲了,我尝试过win7下运行Apache,asp,支持的太差,需要配置的太多,没准那就会有问题。要承认windows下用iis效果还是好。