关于用apache发布asp.net网站的详细配置步骤
2011-11-17 08:41
627 查看
应用软件:apache_2.2.4、mod_aspdotnet-2.2.0.2006
发布环境:windows XP(测试)、windows 2003 server
配置步骤:
一、安装apache2.2.4和mod_aspdotnet-2.2.0.2006(必须安装)
安装完毕后,测试,在浏览器出入127.0.0.1回车
出现it works字样,成功。
二、打开安装目录中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 /wwwroot "f:/wwwroot"
# Map all requests for /active to the application files
Alias /wwwroot "f:/wwwroot"
# Allow asp.net scripts to be executed in the active example
<Directory "f:/wwwroot">
Options FollowSymlinks ExecCGI
Order allow,deny
Allow from all
DirectoryIndex index.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>
其中,f:/wwwroot 是你机子上网站的根目录,例如使用vs编译器写C#WEB程序,网站写好后,通过Build/Publish发布到该目录内。/wwwroot是通过Apache来访问的路径,访问格式为在浏览器地址栏输入http://xxx.xxx.xxx.xxx/wwwroot/Default.aspx。
相关文章推荐
- 配置发布Asp.Net 2.0网站关键步骤
- win7 里配置iis 和asp.net步骤,及发布asp.net网站全程
- win7 里配置iis 和asp.net步骤,及发布asp.net网站全程
- asp.net发布网站的详细步骤
- ASP.NET网站使用Kindeditor富文本编辑器配置步骤
- ASP.NET--网站配置、发布与部署
- 关于linux asp.net MVC网站中 httpHandlers配置无效的处理方法
- asp.net core2.0中网站发布的时候,怎么样才配置才可以使视图文件不被打包进去?
- asp.net mvc 网站发布后IIS配置问题小结
- win7 2008 尚未在 Web 服务器上注册ASP.NET 4.0。为了使网站正确运行,可能需要手动将 Web 服务器配置为使用 ASP.NET 4.0,按 F1 可了解更多详细信息。
- Linux配置Apache架设Asp.Net 2.0网站(Debian篇)
- 用 Apache 发布 ASP.NET 网站
- asp.net 网站发布的步骤
- 用 Apache 发布 ASP.NET 网站
- 关于asp.net 网站网站发布时提示:错误 27 对路径 AppData\Local\Temp\~632b\bin\App_Code.compil的解决方法
- 关于apache配置阿里云证书https的步骤(详细)
- 网站发布—图解Win7旗舰版中的IIS配置asp.net运行环境(一)
- 网站发布—图解Win7旗舰版中的IIS配置asp.net运行环境(二)
- asp.net 网站发布的步骤
- asp.net 网站在Apache下的配置,就这么简单