Can I deploy an .ashx file on Linux?

84 Views Asked by At

I have a .ashx file that call a .dll file and I want to deploy this on my Apache server, so I can call it with a HTTP POST request and get the response I want.

Those are the two only files I have...

I tried to deploy it locally with IIS on my Windows by putting my files directly in the C:\inetpub\wwwroot\ directory, and it worked fine.

I also saw that it is possible to deploy an ASP.NET Core application on an Apache server. (https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/linux-apache?tabs=aspnetcore2x&view=aspnetcore-7.0) So I tried to create a project with Visual Studio and put my files in the wwwroot directory of the project, but I can't call my .ashx file.

I precise that I have no knowledge about ASP.NET or C#.

So, what I want to know is : do I really need to put my files in an ASP.NET Core application to deploy it on Apache ? If yes, how to call my .ashx within the project ? And if not, is there any other way to deploy my files on Apache ?

0

There are 0 best solutions below