Welcome Guest, Not a member yet? Register   Sign In
nginx + CI + GET form? 404
#1

[eluser]chrisco23[/eluser]
I'm in the process of migrating my CI sites from Apache to nginx.

For the most part, I successfully did something similar to what's in this other thread:

http://ellislab.com/forums/viewthread/90231/

I use the REQUEST_URI for URI Protocol. I've found one place so far where this isn't working for me. I have a certain page where I submit a form using the GET method. I do this because the page itself comes from another form post, people will frequently hit the back button to get here, and I want to avoid those "Do you want to resubmit the form?" type of messages.

This all works just fine on Apache, but I'm unclear how to make this work in the nginx world. I have:

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

I assume the problem is that the $1 itself contains its own query string. But I'm just not sure how to resolve this.

Any ideas?


Thanks,
Chris




Theme © iAndrew 2016 - Forum software by © MyBB