Let Apache support ASP.

Source: Internet
Author: User

Apache is a widely used network server program, not only in the Unix/linux platform is heavily used, but also on the Windows platform many sites have abandoned IIS and turned to Apache. NET is Microsoft's powerful development technology, its goal is to contend with Java. Asp. NET is very suitable for the Web application of small and medium-sized enterprises, and its performance is greatly improved ASP3.0. The following is an introduction to how Apache supports ASP.

First, there must be support for the Windows environment and the. NET Framework. It is also recommended to install. NET development tools such as the. NET Framework SDK or visualstudio.net. It is important to note that the version of Windows should be 2000, 2003, and XP. The Win9x series cannot install the. NET Framework. Then you need to install Apache. Should use the WIN32 platform for Apache, version 2.0 or higher. It is recommended to use the 2.0.51 version. :http://apache.freelamp.com/httpd/binaries/win32/apache_2.0.52-win32-x86-no_ssl.msi Specific installation procedures see other articles, This article does not repeat.

Download and install the ASP. NET module under Apache environment. :http://www.apache.org/dist/httpd/mod_aspdotnet/mod_aspdotnet-2.0.0.msi After download is complete, double click to open, all the way next can be installed.

For ease of administration, we create a new Active Directory in the Htdocs directory, dedicated to the. aspx file. Now you need to configure the httpd.conf file to add at the end of the file:

#asp. Net
LoadModule aspdotnet_module "Modules/mod_aspdotnet.so"

AddHandler ASP. 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. 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. Scripts to being executed in the active example

<directory "D:/program files/apache group/apache2/htdocs/active" >

Options FollowSymLinks execcgi

Order Allow,deny

Allow from all

DirectoryIndex Default.htm Default.aspx

</Directory>
# for all virtual ASP 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>


Where D:/program Files/apache group/apache2 is the Apache installation directory, should be changed according to the actual situation. The ASP. NET probe can now be decentralized in the Active Directory. After you restart Apache, you will be able to experience the Apache ASP.

Because both IIS and Apache are running on the basis of the common Language Runtime (CRL), ASP. NET programs in the Apache environment will run no slower than under IIS.

Let Apache support ASP.

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.