win7环境下Apache运行.NET3.5应用
中午饥肠辘辘等待万恶的必胜宅急送送餐的过程中,试着在电脑上用Apache运行了一下.NET3.5应用。所用到的软件:
apache安装包:httpd-2.2.15-win32-x86-no_ssl.msi下载地址: http://httpd.apache.org/download.cgi#apache22
mod_aspdotnet安裝包:mod_aspdotnet-2.2.0.2006-setup-r2.msi 下载地址:http://sourceforge.net/projects/mod-aspdotnet/
安装过程就不说了地球人都会,主要是配置文件,如下:
#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 /ka "E:/myweb"
# Map all requests for /active to the application files
Alias /ka "E:/myweb"
# 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"
Options FollowSymlinks
Order allow,deny
Allow from all
绿色的文字是需要配置的具体物理位置。
到这里以为一切OK满足吃饭,没想到问题来了。
没写入权限,OK,给你权限。按提示找到这个文件夹,杯具啊!!!哪有Temporary ASP.NET Files 文件夹?!
你不仁我不义!我自己建一个成不。没想到手动创建完在重启一下服务,就OK了。
好吧 ,吃饭去了
页:
[1]