Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache with c# classes

Is there any way to have apache "pass" the request it takes to a c# "application" to handle, allowing it to return specific content. I want to handle an intense amount of asynchronous calls to apache via javascript and have these calls routed through c# (much the way asp.net does). Has anyone successfully done this before? Any idea where to start looking?

Update:
Some more information. I want to be able to handle thousands of concurrent asynchronous requests as fast as can possibly occur writing the interpreting agent in some kind of threaded c# application. I could be wrong, but I dont think that iis with asp.net is tailored for this sort of thing (a proof of concept would be great).

I feel that going with something like apache would be better suited. If that means going from something else to c# first is fine I guess, but I would like to be more direct.

like image 630
Dested Avatar asked Jan 22 '10 01:01

Dested


People also ask

What programming language does Apache use?

PHP is the programming language that works with apache to help create dynamic web content.

Is Apache 2.2 still supported?

As previously announced, the Apache HTTP Server Project has discontinued all development and patch review of the 2.2.x series of releases.

Is Apache a Windows or Linux?

Apache can be run on nearly any operating system. However, it is typically used with Linux, a popular open source operating system. Apache combined with Linux, MySQL and PHP database and scripting language form what is known as the LAMP web server solution.


2 Answers

Apache actually supports running C# libraries using mod mono. Also, you could use CURL to send a web request to C# running on IIS. Another way would be to open a server socket directly in C#, and have apache (via php, python, or some other scripting language) connect to you C# application to handle the request. I think you need to be more specific about what exactly you are trying to accomplish.

like image 152
Kibbee Avatar answered Sep 28 '22 00:09

Kibbee


with apache2, you could run mod_aspdotnet

or if it suits you, run some urls in proxy mode (pass them to another asp.net server), using mod_proxy

or Kibbee's excellent solution

like image 29
jspcal Avatar answered Sep 27 '22 22:09

jspcal