Make Apache support ASP and. net

Source: Internet
Author: User

There are several sites at handProgramSo I want to take a look at it and install IIS, but the system is XP Home,

Try to install IIS according to the instructions on the Internet. It seems that XP Home does not support IIS, So it turns to Apache.

Download and install Apache 2.2.9 http://www.apache.org/, which is normal, and finds that ASP and .netare not supported;

Google, find the Sun Java System Active Server Pages 4.0 http://www.sun.com/software/chilisoft,

Download, install, and restart the machine. OK and ASP are OK;

Continue to Google, find a project mod_aspdotnet under Apache, and find that Apache does not support this project,

SourceForge, mod_aspdotnet-2.2.0 http://sourceforge.net/projects/mod-aspdotnet,

Download and install Apache, modify httpd. conf of Apache, and add

# 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 "C:/program files/Apache Software Foundation/apache2.2/htdocs/active"

# Map all requests for/active to the Application Files

Alias/active "C:/program files/Apache Software Foundation/apache2.2/htdocs/active"

# Allow Asp.net scripts to be executed in the active example

<Directory "C:/program files/Apache Software Foundation/apache2.2/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 + )/(.*)/

"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>

AboveCodeDo not enter any blank rows. specify the relevant paths based on actual conditions.

We also found that this version only supports. Net framework1.1, So we removed 2.0 and reinstalled 1.1, OK, but it only does not support the. NET 2.0 syntax.

Environment where the test is successful

Windows XP Home Edition

Apache 2.2.9

Sun one asp 4.0

. Net frmawork 1.1

Mod_aspdotnet 2.2.0

Microsoft

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.