安装apache和mod_aspdotnet之后,在apache原配置文件末尾加入(地址路径需要动态修改):#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 /manage "D:/Program Files/Apache Software Foundation/Apache2.2/htdocs/manage" # Map all requests for /active to the application files Alias /manage "D:/Program Files/Apache Software Foundation/Apache2.2/htdocs/manage" # Allow asp.net scripts to be executed in the active example <Directory "D:/Program Files/Apache Software Foundation/Apache2.2/htdocs/manage"> Options FollowSymlinks ExecCGI Order allow,deny Allow from all DirectoryIndex login.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>