Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Run my Asp.net Core application on Apache server on Windows?

Asp.net core is open source and run on any os like Linux, Windows and Mac. my question is. is it possible to run asp.net core application run on apache server publish on not on IIS server on Windows operating system. thanks in advance.

like image 780
tthewolf3D Avatar asked May 03 '17 06:05

tthewolf3D


People also ask

Can we host .NET Core application in Apache on Windows?

You cannot host a . NET Core application on Apache on Windows. What you can do is to use Kestrel with a reverse proxy such as describe in this article.

Can you run .NET Core on Apache?

Apache is now set up to forward requests made to http://localhost:80 to the ASP.NET Core app running on Kestrel at http://127.0.0.1:5000 . However, Apache isn't set up to manage the Kestrel process. Use systemd and create a service file to start and monitor the underlying web app.

Can I run ASP.NET on Apache server?

ASP.NET hosting with ApacheThe mod_mono Apache module is used to run ASP.NET applications within the Apache web server. The mod_mono module runs within an Apache process and passes all the requests to ASP.NET applications to an external Mono process that actually hosts your ASP.NET applications.


1 Answers

There is no Apache mod to run ASP.NET Core application, however you can setup Apache or Nginx to be a reverse proxy for ASP.NET Core application running on Kestrel web server. This is actually what Microsoft recommends to do in production environment primarily for security reasons. For more details take a look at this article. To see how exactly configure Apache reverse proxy take a look here.

like image 95
Alexey Andrushkevich Avatar answered Oct 01 '22 15:10

Alexey Andrushkevich