Apache is a widely used network server. Program Not only is it widely used on Unix/Linux platforms, but also many websites on Windows platforms have abandoned IIS and switched to Apache .. Net is a powerful development technology launched by Microsoft. Its goal is to compete with Java. ASP. NET is very suitable for small and medium-sized enterprise web applications, and its performance is greatly improved compared with asp3.0. The following describes how to enable Apache to support ASP. NET.
First, you must have support for the Windows environment and. NET Framework. We also recommend that you install. NET development tools such as. NET Framework SDK or Visual Studio. NET. Note that Windows versions are 2000, 2003, and XP. The. NET Framework cannot be installed in the Win9x series. Then install Apache. Use Apache of Win32 platform, version 2.0 or later. : Http://apache.justdn.org/httpd/bina... for specific installation procedures, see otherArticle.
Download and install the ASP. NET module in the Apache environment. : Http://www.apache.org/dist/httpd/mo...after the download is complete, double-click it and install nextalong the way.
To facilitate management, we create an ASP Directory under the htdocs directory to store the. aspx file. Now you need to make some configuration for the httpd. conf file and add: # Asp.net at the end of the file
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 be 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 + )/(.*)\
"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
D:/program files/Apache Group/apache2 is the installation directory of Apache, which should be changed according to the actual situation. Now you can place the ASP. NET probe in the ASP Directory. After restarting Apache, you can experience ASP. NET under Apache.
Because ASP. NET in IIS and Apache runs on the basis of common language runtime (CRL), ASP. NET programs in Apache are not slower than those in IIS.