In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail how Apache supports ASP.NET 2.0. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
ASP.NET 2.0 is a generation of Web application development platform. As a part of .NET Framework, it is powerful, high-performance and easy to develop. As a Microsoft product, the Web server used to build ASP.NET*** is of course IIS (a comparison between IIS and Apache). However, if a Windows machine already has Apache installed and already has a Web application, it will no longer be able to turn on IIS (under the same port). Fortunately, we can also support ASP.NET under Apache httpd.
Mono, an open source project dedicated to .NET cross-platform * *, provides a plug-in Mod_mono under Apache to support ASP.NET. However, Mod_mono is mainly aimed at the Unix/Linux platform. Although a version is available under Windows, the icing on the cake is that it is based on Mono rather than Windows off-the-shelf. NET Framework, and it is not updated in time and does not support ASP.NET 2.0 well.
There are also people who have made independent Web servers to support ASP.NET, but they still can't meet our need to directly use existing Apache to support ASP.NET.
In fact, Apache officially provided the ASP.NET solution, which is the mod_aspdotnet module. But the plug-in stopped development a year and a half ago, not knowing whether it was to make way for Mono or to worry that ASP.NET was growing too fast. However, we can still download it from Apache's module repository.
Mod_aspdotnet is much more sophisticated than mod_mono, the installer is only 300K, as long as the. NET Framework is installed in the system, it can support ASP.NET or even 2.0K.
It is quite simple for Apache to support the implementation of ASP.NET. The steps are as follows:
1. Download and install the Apache HTTP Server of * * (the link given here is 2.2.3) and do the basic configuration (skip this step if the Apache service is enabled).
two。 Download and install the mod_aspdotnet module.
3. Modify the configuration file (usually located at C:\ Program Files\ Apache Group\ Apache2\ conf\ httpd.conf) and add the following lines:
# 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 AspNetMount / SampleASP "c:/SampleASP" Alias / SampleASP "c:/SampleASP" # / SampleASP is the alias of the directory used to execute asp.net, and c:/SampleASP is its actual address # turn on script running permission
< Directory "c:/SampleASP">Options FollowSymlinks ExecCGI Order allow,deny Allow from all DirectoryIndex index.htm index.aspx # set default file # for ASP.NET virtual pages, the following aspnet_client files are required to support the client help script AliasMatch / aspnet_client/system_web/ (\ 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 # asp.net
4. Create an ASP.NET site under C:/SampleASP (create an index.aspx file)
5. Restart the Apache server.
6. Done, you can use http://localhost/SampleASP/index.aspx to check the effect of Apache supporting ASP.NET.
This is the end of this article on "how Apache supports ASP.NET 2.0". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.