Note: Notice that the above method is limited to Windows and has a framework in general Win7 has its own
1, first download a mod_aspdotnet-2.2.0.2006-setup-r2.msi
2, installed in the Apache Moudles directory will generate a mod_aspdotnet.so file
3, modify the httpd.conf at the end of the file plus the following code
Copy Code code as follows:
#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>
Aspnetmount/"d:/xampp/xampp/htdocs/"
Alias/"d:/xampp/xampp/htdocs/"
<directory "d:/xampp/xampp/htdocs/" >
Options FollowSymLinks execcgi
Order Allow,deny
Allow from all
DirectoryIndex index.htm index.aspx
</Directory>
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>
#asp. Net
Where the red for your site placed the directory
4, restart the Apache OK success
Look at other articles.
According to the instructions on the Internet to try to install IIS, at least installed but not so, it seems that XP home does not support IIS, so turned to Apache.
Install good Apache 2.2.9 http://www.apache.org/, all normal, and found that does not support ASP and. NET program, Halo;
Google, find Sun Java System Active Server Pages 4.0
http://www.sun.com/software/chilisoft/,
Download down to install well, restart the machine, ok,asp no problem;
Continue to Google, find a project mod_aspdotnet below Apache, found that Apache has not supported this project,
This project was converted to sourceforge,mod_aspdotnet-2.2.0 http://sourceforge.net/projects/mod-aspdotnet,
Download install, modify Apache httpd.conf, add at the end
Copy Code code as follows:
#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/active "C:/Program Files/apache Software foundation/apache2.2/htdocs/active"
# MAP all requests for/active to the application files
Alias/active "C:/Program Files/apache Software foundation/apache2.2/htdocs/active"
# Allow asp.net scripts to is executed in the active example
<directory "C:/Program files/apache Software foundation/apache2.2/htdocs/active" >
Options FollowSymLinks execcgi
Order Allow,deny
Allow from all DirectoryIndex default.htm Default.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>
The above part of the code, pay attention to do not have empty lines, relevant path to fill in the actual situation
It is also found that this version only supports. NET framework1.1, and then unloads the 2.0 reload 1.1,ok, but does not support the. NET 2.0 syntax
。
The environment in which the final test is successful
Windows XP Home Edition
Apache 2.2.9
Sun One ASP 4.0
. NET Frmawork 1.1
Mod_aspdotnet 2.2.0
The evils of Microsoft
Ko our installation on it, we can see that the normal operation is not OH.