如何在Windows apache服务器上运行ASP.NET网站? [英] How do I run ASP.NET website on windows apache server?

查看:88
本文介绍了如何在Windows apache服务器上运行ASP.NET网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Windows APACHE服务器上运行我的asp.net文件或页面?

可以在其上运行ASP.NET文件吗?



i正在处理一个包含.php和.aspx页面的项目

i希望在APACHE服务器上同时运行.php和.aspx页面。



请帮助!!



我尝试过:



< VirtualHost *:80>

ServerAlias localhost

DocumentRootc:\web\mysite

MonoServerPath mysitec:\ mono \ usr \ bin \ mod-mono-server2.exe

MonoApplications mysite/:c:\web\mysite



<目录c:\web\mysite>

选项索引FollowSymLinks MultiViews

AllowOverride All

订单允许,拒绝

允许所有

MonoSetServerAlias mysite

SetHandler mono

DirectoryIndex default.aspx index.html

解决方
ASP.NET本身就不能因为它是严格依赖于由IIS在Windows中提供的组件和服务的Apache Web服务器上运行。这意味着,在这里死路一条。无论如何,您仍然可以考虑使用Mono Project并针对Mono编译ASP.NET Web应用程序,这可以针对Linux或其他平台以及其他Web服务器进行操作。这是我找到的, mod_mono |单声道 [ ^ ]。您可以查看文档,然后进行必要的更改以在Apache服务器上部署Web应用程序。



ASP.NET Core非常支持Apache和其他服务器。因此,如果要使用Apache,可以考虑该框架。例如,请参阅主机ASP.NET核心在Linux上使用Apache | Microsoft Docs [ ^ ]


希望它能为您提供帮助。

Link [ ^ ]


关于CodeProject有一篇很好的文章,但它不是最近的: Mono简介 - 使用XSP和Apache的ASP.NET [ ^ ]

您可能也有兴趣:制作方法跨平台应用程序~monodevelop [ ^ ]

How do i run my asp.net file or page on windows APACHE server?
it possible to run ASP.NET file over it?

i am working on a project which contains both .php and .aspx pages
i want to run both the .php and .aspx pages on APACHE server.

please help!!

What I have tried:

<VirtualHost *:80>
ServerAlias localhost
DocumentRoot "c:\web\mysite"
MonoServerPath mysite "c:\mono\usr\bin\mod-mono-server2.exe"
MonoApplications mysite "/:c:\web\mysite"

<Directory "c:\web\mysite">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
MonoSetServerAlias mysite
SetHandler mono
DirectoryIndex default.aspx index.html

解决方案

ASP.NET itself won't be able to run on Apache web server because it is strictly tied to the components and services provided by IIS on Windows. This means, a dead end here. Anyhow, you can still consider using Mono Project and compile your ASP.NET web app against Mono, that can be worked against Linux or other platforms, and other web servers too. This is what I found for you, mod_mono | Mono[^]. You can check the documentation and then make required changes to deploy the web app on Apache servers.

ASP.NET Core supports Apache and other servers quite well. So you can consider that framework if you want to use Apache. See this for example, Host ASP.NET Core on Linux with Apache | Microsoft Docs[^]


Hope it will help you.
Link[^]


There is a good article on CodeProject about it, but it's not very recent: Introduction to Mono - ASP.NET with XSP and Apache[^]
You might also be interested in: ways-to-make-a-cross-platform-application~monodevelop[^]


这篇关于如何在Windows apache服务器上运行ASP.NET网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆