[Mono-aspnet-list] Mono on Nginx
Daniel J. Summers
daniel.summers.2415 at gmail.com
Mon Feb 14 23:39:00 EST 2011
On Mon, Feb 14, 2011 at 4:43 PM, JZ <jeff at odyl.net> wrote:
> Is anyone hosting Mono on XSP/FastCGI/Nginx?
> Anyone else run in to this (ScriptMethod returns 405/500 "can't POST to
> Page.aspx/MethodName") issue?
Yep - and it's why I, at the suggestion of someone else, am looking at
migrating back to Apache2, using the worker MPM and mod_fcgi to have Apache
spawn the Mono processes. I'm still in the working-it-out phase. The
problem with nginx is that, in the URL /my_service.asmx/GetCoolStuff, it's
assuming that "/GetCoolStuff" is either a file with no extension or a
directory. Since some RFC doesn't allow for this, nginx intercepts it and
just returns a 405. There was a patch posted to forums, but the repository
version (Ubuntu) was well past the version the patch should have been in,
and the behavior still remained.
I tried lots of different things, but the lack of a case-insensitive switch
(in nginx natively - MONO_IOMAP=all works great for the Mono piece), along
with its viewing of the entire URL (including query string) making URLs like
"image.axd?file=/App_Data/files/10/09/28/pic.jpg" fail because they match
.jpg instead of .axd, I'm pursuing the Apache solution.
Certainly post back (pardon the pun) here if you figure it out; however, the
"Apache manages the process" thing will also fix a nagging PHP-hang problem
I've had with nginx (which PHP-FPM hasn't), so unless I hit an
insurmountable roadblock, that's the route I'm heading towards. I'm
planning on writing up how I made it work (once I have made it work), and
posting the URL to that to this list.
*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
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...
More information about the Mono-aspnet-list