Tips for Apache to support ASP. NET

Source: Internet
Author: User
Make Apache support ASP. NET
Apache is a widely used network server program. It is widely used not only on UNIX/LINUX platforms, but also on Windows platforms .. 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. We also recommend that you 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... in32-x86-no_ssl.msi specific installation process please refer to other articles, this article will not go into detail.
Download and install the ASP. NET module in the Apache environment. : Http://www.apache.org/dist/httpd... after the aspdotnet-2.0.0.msi download is complete, double-click open, one way to Next to complete the installation.
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:
Reference content is 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
# Mount the ASP. NET example application
AspNetMount/active "D:/Program Files/Apache Group/Apache2/htdocs/active"
# Map all requests for/active to the application files
Alias/active "D:/Program Files/Apache Group/Apache2/htdocs/active"
# Allow asp.net scripts to be executed in the active example
  
Options FollowSymlinks ExecCGI
Order allow, deny
Allow from all
DirectoryIndex Default.htm Default. aspx
# 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 + )/(.*)
"C:/Windows/Microsoft. NET/Framework/v ../ASP. NETClientFiles /"
"C:/Windows/Microsoft. NET/framework/V */asp. netclientfiles">
Options followsymlinks
Order allow, deny
Allow from all
D:/program files/Apache Group/apache2 is the installation directory of Apache, which should be changed according to the actual situation. 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.

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.