Based on Apache support. NET2.0 Web Server Build _linux

Source: Internet
Author: User
Tags port number
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:)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.