How Apache supports 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 the installation. 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 be installed. NET Framework.

Apache supports ASP. Mod_aspdotnet Module Components 2010-01-05 14:57

Apache is not supported for ASP, and requires an ASP. Mod_aspdotnet (:http://sourceforge.net/projects/mod-aspdotnet) Apache I use the official 2.0.63 (:http://httpd.apache.org/download.cgi), not with the latest version, the reason is Mod_ Aspdotnet installation path must be consistent with Apache, I began to use the latest Apache2.2.8 its path has changed, and Mod_aspdotnet path is the old version, and even if the mod_aspdotnet path is changed, Can not be installed in the latest Apache, do not know what the reason, so I changed 2.0.63 version, in the installation of Apache when there are three options to fill, is the domain name, server name (machine name), e-mail address, feel free to fill in after the next can be, mod_ The installation of Aspdotnet is also a way next. After installation, enter 127.0.0.1 in the browser should be able to see a page prompt installation is successful. I won't say much since it's asp.net,dotnet2.0 to install.


After the download is complete, double-click to open, all the way next installation is complete.

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.

How Apache supports 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.