Playing asp.net in Apache HTTP server environment

Source: Internet
Author: User
First, you must have the Windows environment and the. NET Framework support. It is also recommended to install. 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. Download Address: http://apache.justdn.org ..., please refer to other articles in 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/di ... When the download is complete, double-click to open it and install it all the way next.

For ease of management, we create an ASP directory in the Htdocs directory that stores. aspx files specifically. 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


# Mount The asp.net example application

Aspnetmount/active "D:/program files/apache group/apache2/htdocs/asp"
# MAP all requests for/active to the application files

Alias/active "D:/program files/apache group/apache2/htdocs/asp"
# Allow asp.net scripts to is 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+) _ (d+) _ (d+)/(. *)

"C:/windows/microsoft.net/framework/v$1.$2.$3/asp.netclientfiles/$4"


"C:/windows/microsoft.net/framework/v*/asp.netclientfiles" >

Options FollowSymLinks

Order Allow,deny

Allow from all



Where D:/program Files/apache group/apache2 is an Apache installation directory, should be changed according to the actual situation. The ASP.net probe can now be delegated to the ASP directory. After restarting Apache, you can experience the asp.net under Apache.

Because 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.