1, download Apache HTTP server: I downloaded the version is Apachehttpserverforwindowsv2.2.8.msi.
2, installation, almost all the way next down, but there is a link to note that when you select the HTTP default port, if you have installed IIS in your system to write individual ports (such as 8080) instead of using the default 80 port, otherwise the server will not start after installation. (However, you can also modify the port number of the Listen node in the Apache configuration file after installation, and then restart the server).
3, download Mod_aspdotnet module: I downloaded the version is: Mod_aspdotnet-2.2.0.2006-setup-r2.msi.
4, installation, all the way next.
5, modify the Apache server configuration file, add the following code at the end of the file:
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
Aliasmatch "^/(? i) 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>
#上面的代码保持默认就好了, the following needs to be based on your actual situation to make the corresponding changes.
#MyWeb是逻辑路径, and the following double quotes are the physical path where your Web files are located.
Aspnetmount/myweb "E:\WebPage\Release"
Alias/myweb "E:\WebPage\Release"
<directory "E:\WebPage\Release" >
Options FollowSymLinks Indexes
AspNet files
Order Allow,deny
Allow from all
DirectoryIndex index.aspx Default.htm Default.aspx
</Directory>
#asp. Net
Then reboot the server and open the page to see if the page is properly accessible and displayed. NET Server-side control:)