Let Apache support asp.net

Source: Internet
Author: User
Tags iis net version win32
Apache|asp.net|apache|asp.net Apache is currently widely used in a Web server program, not only on the Unix/linux platform is heavily used, but also on the Windows platform many sites have abandoned IIS and turned to Apache.
. NET is a powerful development technology launched by Microsoft, whose goal is to contend with Java. Asp. NET is very suitable for the small and medium-sized Enterprise Web application, its performance is greatly improved than ASP3.0.
Here's a way to get Apache to support asp.net.

First, you must have the Windows environment and the. NET Framework support. It is also recommended that you install the installation. NET development tools such as the. NET Framework SDK or visualstudio.net. 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. You should use Apache on the Win32 platform, version 2.0 or more. It is recommended to use the 2.0.51 version. Download Address:
Http://apache.freelamp.com/httpd/binaries/win32/apache_2.0.52-win32-x86-no_ssl.msi
Please refer to the other articles for the specific installation process, this article will not repeat.

Download and install the ASP.net module in the Apache environment below. Download Address:
Http://www.apache.org/dist/httpd/mod_aspdotnet/mod_aspdotnet-2.0.0.msi
When the download is complete, double-click to open it and install it all the way next.

For ease of management, we create a new Active Directory in the Htdocs directory that specializes in. aspx files. 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.net 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.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 is 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.net 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 an Apache installation directory, should be changed according to the actual situation.
You can now decentralize the ASP.net probe in the Active Directory. After restarting Apache, you can experience the asp.net under Apache.

Since both IIS and Apache asp.net are run on the basis of common Language Runtime (CRL), asp.net programs in the Apache environment do not run faster than under IIS.



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.