Analysis on ASP. NET supported by Apache

Source: Internet
Author: User

Apache is a widely used network server program. It is not only widely used on UNIX/LINUX platforms, but also many websites on Windows platforms that have abandoned IIS and switched to Apache.

. NET is a powerful development technology launched by Microsoft. Its goal is to compete with Java. ASP. NET is very suitable for small and medium-sized enterprise Web applications, and its performance is greatly improved compared with ASP3.0.

The following describes how to enable Apache to support ASP. NET.

First, you must have support for the Windows environment and. NET Framework. It is also recommended to install and install. NET development tools such as. NET Framework SDK or Visual Studio. NET. Note that Windows versions are 2000, 2003, and XP. The. NET Framework cannot be installed in the Win9X series.

Then install Apache. Use Apache of Win32 platform, version 2.0 or later. Version 2.0.51 is recommended.

: Http://apache.freelamp.com/httpd/binaries... 0.52-win32-x86-no_ssl.msi
For more information about the installation process, see other articles.

Download and install the ASP. NET module in the Apache environment. To make Apache support ASP. NET.: http://www.apache.org/dist/httpd/mo... d_aspdotnet-2.0.0.msi

After the download is complete, double-click it and install it one by one.

To facilitate management, we create an active directory under the htdocs directory to store the. aspx file. Now you need to make some configuration for the httpd. conf file and add it at the end of the file:

 
 
  1. #asp.net   
  2. LoadModule aspdotnet_module   
  3. "modules/mod_aspdotnet.so"   
  4.  
  5. AddHandler asp.net asax ascx   
  6. ashx asmx aspx axd config cs csproj \   
  7. licx rem resources resx soap vb   
  8. vbproj vsdisco webinfo   
  9.  
  10.    
  11.  
  12. # Mount the ASP.NET example application   
  13. AspNetMount /active "D:/Program Files/Apache   
  14. Group/Apache2/htdocs/active"   
  15.  
  16. # Map all requests for /active to   
  17. the application files   
  18. Alias /active "D:/Program Files/Apache   
  19. Group/Apache2/htdocs/active"   
  20.  
  21. # Allow asp.net scripts to be executed   
  22. in the active example   
  23. Group/Apache2/htdocs/active">   
  24. Options FollowSymlinks ExecCGI   
  25. Order allow,deny   
  26. Allow from all   
  27. DirectoryIndex Default.htm Default.aspx   
  28.  
  29.  
  30. # For all virtual ASP.NET webs, we need   
  31. the aspnet_client files   
  32. # to serve the client-side helper scripts.   
  33. AliasMatch /aspnet_client/system_web/  
  34. (\d+)_(\d+)_(\d+)_(\d+)/(.*) \   
  35. "C:/Windows/Microsoft.NET/Framework/v1.2.3/  
  36. ASP.NETClientFiles/4"   
  37. "C:/Windows/Microsoft.NET/Framework/v*/  
  38. ASP.NETClientFiles">   
  39. Options FollowSymlinks   
  40. Order allow,deny   
  41. Allow from all   
  42.    
  43.   

D:/Program Files/Apache Group/Apache2 is the installation directory of Apache, which should be changed according to the actual situation. Apache supports ASP. NET. Now you can place the ASP. NET probe in the active Directory. After restarting Apache, you can experience ASP. NET under Apache.

Because ASP. NET in IIS and Apache runs on the basis of Common Language Runtime (CRL), ASP. NET programs in Apache are not slower than those in IIS.

  1. Three types supported by ASP. NET Cache
  2. Introduction to ASP. NET multi-language support components
  3. Programming of ASP. NET Server controls
  4. Basics of ASP. NET mobile development (1)
  5. ASP. NET SqlDataSource Control

Related Article

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.