Welcome! Log In Create A New Profile

Advanced

Need help with nginx rewrites (for sub-domains)

Jimish Jobanputra
April 28, 2011 07:12PM
Hello,

I have been scratching my head last 2 days trying to get this working:

I have a Rails application, say, http://example.com and now I want to
run a PHP app on http://example.com/coupons

I set up the PHP app but I am having a hard time with nginx rewrites. I
hope someone here can assist me:

Here's how I set up things in nginx.conf

https://gist.github.com/946479

Now http://example.com/coupons loads up the home page, however if I try
http://example.com/coupons/ (with the extra slash), it says "No input
file found"

Same goes with http://example.com/coupons/Admin and so on.. somehow the
rewrites are screwed up i guess..

PS: The above code has been tweaked again and again, so if there is
something silly, be nice and let me know ;)

--
Posted via http://www.ruby-forum.com/.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Need help with nginx rewrites (for sub-domains)

Jimish Jobanputra April 28, 2011 07:12PM

Re: Need help with nginx rewrites (for sub-domains)

edogawaconan April 28, 2011 11:22PM

Re: Need help with nginx rewrites (for sub-domains)

Jimish Jobanputra April 29, 2011 06:02AM

Re: Need help with nginx rewrites (for sub-domains)

edogawaconan April 29, 2011 06:18AM

Re: Need help with nginx rewrites (for sub-domains)

Jimish Jobanputra April 29, 2011 06:32AM

Re: Need help with nginx rewrites (for sub-domains)

Igor Sysoev April 29, 2011 06:34AM

Re: Need help with nginx rewrites (for sub-domains)

Jimish Jobanputra April 29, 2011 06:36AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 282
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready