In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
And let Apache support ASP.NET, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.
Apache is a widely used network server program, which is not only widely used on the UNIX/LINUX platform, but also many sites on the Windows platform give up IIS and turn to Apache.
Net is a powerful development technology introduced by Microsoft, and its goal is to compete with Java. ASP.NET is very suitable for Web applications in small and medium-sized enterprises, and its performance has been greatly improved compared with ASP3.0.
The way to get Apache to support ASP.NET
First of all, there must be support for the Windows environment and the .NET Framework. It is also recommended to install .NET development tools such as. NET Framework SDK or VisualStudio.NET. It should be noted that the versions of Windows should be 2000, 2003, and XP. The .NET Framework cannot be installed in the Win9X series.
Then you need to install Apache. You should use Apache for the Win32 platform, version 2.0 or later. Version 2.0.51 is recommended. Download address:
Enter http://apache.justdn.org/httpd/binaries/win32/
Choose a version above 2.0 (those with the .msi suffix).
Please refer to other articles for the specific installation process, which will not be repeated in this article.
Next, download and install the ASP.NET module in the Apache environment. Download address:
Address 1: enter http://httpd.apache.org/cli/
Select Download the mod_aspdotnet 2.0.0.msi installer
Address 2: http://cndyd.net/mod_aspdotnet-2.0.0.msi
The installation path should be the same as that of Apache, otherwise it cannot be installed normally.
For ease of management, we create a new active directory under the htdocs directory to store .aspx files. Now, in order for Apache to support ASP.NET, you need to configure the httpd.conf file by adding:
# 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 be 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 +) / (. *)\ "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 installation directory of Apache, which should be changed according to the actual situation.
You can now put the ASP.NET probe in the active directory. After restarting Apache, you can experience the environment where Apache supports ASP.NET.
Because ASP.NET under IIS and Apache runs on the basis of Common Language Runtime (CRL), the speed of ASP.NET program under Apache environment is no slower than that under IIS environment.
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.