Connection reset by server

Adam Setzler adam.setzler at gmail.com
Sat Aug 23 20:03:29 MSD 2008


I apologize for being lazy... Here is my actual rewrite from the
sites-available dir, which includes that preceding slash...

location / {
           if (!-e $request_filename) {
                rewrite ^/(.*)$ /index.php?q=$1 last;
           }
        }


-- Adam

"Courage is not the absence of fear, but rather the judgment that something
else is more important than fear." — Ambrose Redmoon


On Sat, Aug 23, 2008 at 9:55 AM, Roxis <roxis at list.ru> wrote:

> On Saturday 23 August 2008, Adam Setzler wrote:
> > Upon further inspection, I am getting a 405 when POST is submitting to a
> > Drupal module and Clean URL is enabled.  It works fine without Clean
> URLs.
> > It is an AJAX form that submits to /upload/js (clean) OR
> > index.php?q=upload/js (dirty).
> >
> > My rewrite is ^/(.*)$ index.php?q=$1
>
> add a slash before index.php
>
> rewrite    ^/(.*)$    /index.php?q=$1
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20080823/01a9eda2/attachment.html>


More information about the nginx mailing list