[Mono-aspnet-list] Handling php in the same asp.net web site/application

Daniel J. Summers daniel.summers.2415 at gmail.com
Tue May 17 13:23:16 EDT 2011


On Mon, May 16, 2011 at 10:42 AM, moljac <mcvjetko at holisticware.net> wrote:

> Is it possible and if yes, with wich server (it seems like lighthttpd colud
> do it) would be possible
> to process asp.net (aspx, asmx, ashx etc) and php in the same
> application/site??
> ...
> Could it be made with apache 2.2 and how?
>

It certainly should be possible with any number of web servers; you can set
the handler based on the file extension.  A good number of Mono tutorials
show setting Mono as THE handler for all pages.  You could configure PHP to
only handle the .php extension, then default the rest to Mono.  For Apache2,
look at the AddHandler and SetHandler directives; with LigHTTPD and nginx,
set the FastCGI configuration based on file type.

(Disclaimer: I haven't actually done this myself; this answer is based on my
knowledge of configuring LigHTTPD, nginx, and Apache.)

-- 
*Daniel J. Summers*
*Owner, DJS Consulting*
E-mail <daniel.summers.2415 at gmail.com> • Website <http://djs-consulting.com>
 • Support <http://support.djs-consulting.com> • Tech
Blog<http://techblog.djs-consulting.com>

GEEKCODE 3.12 GCS/IT d s-:+ a C++ P--- L++ E--- W++ N++ o? K- w !O M--
V PS+ PE++ Y? PGP- t+ 5? X+ R* tv b+ DI++ D+ G- e<++ h---- r+++ y++++
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-aspnet-list/attachments/20110517/d2d1ae05/attachment-0001.html 


More information about the Mono-aspnet-list mailing list