Welcome! Log In Create A New Profile

Advanced

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

April 29, 2011 06:18AM
On Fri, Apr 29, 2011 at 5:01 PM, Jimish Jobanputra <lists@ruby-forum.com> wrote:
> Thanks a lot!!! That works like a charm...
>
> However, there is one more issue:
>
> If I try to go to http://example.com/coupons/about then it takes me to
> index page itself... I tried couple of things, but no luck yet...
>

I guess the `location /coupons/` should go like this instead (replace
entire `location /coupons/ { }` block):

location ~ /coupons/(.*) {
root /home/jjobanputra/code/coupon;
try_files $uri $uri/ /coupons/index.php?q=$1;
index index.php index.html index.htm;
expires 30d;
}

_______________________________________________
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: 257
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