开发者

run asp.net on apache [duplicate]

This question already has answers here: How to run ASP.NET 4.0 website on Apache server? (3 answers) Closed 7 years ago.

I want to run an ASP.NET site on Apache Server instead of IIS.

I've Googled a lot, but didn't find satisfactory answers. I only found out that we can use something called 'Mono' - a third party API for doing this. Can anyone explain the basics - for example, do we need to insta开发者_运维知识库ll install .NET on that server? What if it is a UNIX server?

Any detailed explanation, or links, if provided would be greatly appreciated.


Mono is exactly what you're looking for, actually. It's an extremely mature and stable product that's been providing .NET Framework support on open systems for a very long time. mod_mono for Apache is specifically what you need.

To answer your questions:

  • The .NET Framework itself won't install on non-Windows machines. Mono is its replacement. So you don't need to install the .NET Framework from Microsoft.
  • Unix, Linux, etc. Shouldn't be a problem.


Mono is an open-source version of the .Net Framework and can be integrated into Apache as described here:

http://www.mono-project.com/ASP.NET

I believe this is your only option.


Here is a tutorial about mod_mono + apache configuration:

http://www.mono-project.com/Mod_mono

AFAIK mod_mono + Apache is only working with a linux machine, not a windows machine. It is not possible to install .net framework on linux.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜