Apache运行.net网站的方法
[08-23 21:53:19] 来源:http://www.duoxue8.com 组网技巧 阅读:389次1。运行.net网站,系统首先需安装.Net Framework,然后安装Apache(如果已安装IIS,需先更改网站端口,因为默认为80,可改为81,这样Apache安装就可以使用80端口,否则可能安装不成功),运行.net还需安装插件mod_aspdotnet,但该插件据说已停止更新,下面给出这两个软件的下载地址:
apache的下载地址: http://httpd.apache.org/download.cgi
mod_aspdotnet的下载地址:http://sourceforge.net/projects/mod-aspdotnet/
如果mod_aspdotnet插件安装过程中出现安装路径不正确,请参考:http://www.zdbase.com/content/detail.aspx?OID=FF9786F3-6FBA-478A-871D-E3DEDD161D21
2。修改apache的配置文件。
进入Apache的conf目录,打开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
# Mount the ASP.NET example application假设网站文件位于E:/test_file
AspNetMount /youtest "E:/test_file"
# Map all requests for /active to the application files
Alias /youtest "E:/test_file"
# Allow asp.net scripts to be executed in the active example
<Directory "E:/test_file">
Options FollowSymlinks ExecCGI
Order allow,deny
Allow from all
DirectoryIndex Default.htm Default.aspx 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>
3。在地址栏输入:http://localhost/youtest ,就可以访问你的.net网站了
Apache运行.net网站的方法 结束。
- ·上一个:影响网站排名的几个方面
- Apache运行.net网站的方法
- › Apache服务器使用.htaccess实现图片防盗链
- › Apache处理器的使用
- › AppServ,解決啟動 Apache 的 LogFormat 錯誤訊息
- › Apache服务器使用.htaccess实现图片防盗链教程
- › Apache运行.net网站的方法
- › 安装windows+Apache+php+mysql
- 在百度中搜索相关文章:Apache运行.net网站的方法
- 在谷歌中搜索相关文章:Apache运行.net网站的方法
- 在soso中搜索相关文章:Apache运行.net网站的方法
- 在搜狗中搜索相关文章:Apache运行.net网站的方法