apache下支持asp.net的實(shí)現(xiàn)方法
更新時間:2009年12月26日 00:02:09 作者:
讓apache支持asp.net的設(shè)置步驟。
1.安裝.netframework(具體版本可以自己選,建議裝netframework3.5sp1)
2.安裝mod_aspdotnet.so,這個支持apache2.2的不好找,附上http://xiazai.jb51.net/200912/tools/mod_aspdotnet-2.2.0.2006-setup-r2.rar
apache2.0的,可以到網(wǎng)上找,很多。
3.修改配置
打開httpd.conf
在最后添加
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>
# 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>
4.在你所在的虛擬主機(jī)或虛擬目錄加上
AspNetMount / “d:/www”
記得d:/www是你虛擬主機(jī)或虛擬目錄的目錄,這樣你所在的目錄或者虛擬主機(jī)就可以支持.net的
2.安裝mod_aspdotnet.so,這個支持apache2.2的不好找,附上http://xiazai.jb51.net/200912/tools/mod_aspdotnet-2.2.0.2006-setup-r2.rar
apache2.0的,可以到網(wǎng)上找,很多。
3.修改配置
打開httpd.conf
在最后添加
復(fù)制代碼 代碼如下:
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>
# 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>
4.在你所在的虛擬主機(jī)或虛擬目錄加上
復(fù)制代碼 代碼如下:
AspNetMount / “d:/www”
記得d:/www是你虛擬主機(jī)或虛擬目錄的目錄,這樣你所在的目錄或者虛擬主機(jī)就可以支持.net的
相關(guān)文章
Linux進(jìn)程網(wǎng)絡(luò)流量統(tǒng)計(jì)的實(shí)現(xiàn)過程
這篇文章主要介紹了Linux進(jìn)程網(wǎng)絡(luò)流量統(tǒng)計(jì)的實(shí)現(xiàn)過程,本文給大家介紹的非常詳細(xì),具有一定的參考借鑒價值,需要的朋友可以參考下2018-09-09基于 Ubuntu 的發(fā)行版上安裝微軟 TrueType 字體的教程
這篇文章主要介紹了基于 Ubuntu 的發(fā)行版上安裝微軟 TrueType 字體的教程,本文給大家介紹的非常詳細(xì),對大家的學(xué)習(xí)或工作具有一定的參考借鑒價值,需要的朋友可以參考下2020-04-04Linux中mkdir函數(shù)與Windows中_mkdir函數(shù)的區(qū)別
這篇文章主要介紹了Linux中mkdir函數(shù)與Windows中_mkdir函數(shù)的區(qū)別的相關(guān)資料,需要的朋友可以參考下2016-01-01修改.htaccess實(shí)現(xiàn)301域名重定向示例分享
這篇文章主要介紹了修改.htaccess實(shí)現(xiàn)301域名重定向示例,需要的朋友可以參考下2014-03-03linux系統(tǒng)重裝導(dǎo)致免密碼key登錄失敗的解決方法
下面小編就為大家?guī)硪黄猯inux系統(tǒng)重裝導(dǎo)致免密碼key登錄失敗的解決方法。小編覺得挺不錯的,現(xiàn)在就分享給大家,也給大家做個參考。一起跟隨小編過來看看吧2016-11-11