Re: [IE] Re: Rewrite with number after hyphen

2018-09-05 Thread Ivan Bianchi
[mailto:nginx-boun...@nginx.org] *On Behalf Of *Ivan Bianchi > *Sent:* Wednesday, September 5, 2018 9:25 AM > *To:* nginx@nginx.org > *Subject:* [IE] Re: Rewrite with number after hyphen > > > > Hi Francis, > > > > many thanks for your response and guidelines. Indeed you w

RE: [IE] Re: Rewrite with number after hyphen

2018-09-05 Thread Jason Whittington
g Subject: [IE] Re: Rewrite with number after hyphen Hi Francis, many thanks for your response and guidelines. Indeed you were right that there was another location capturing the request. Best regards, On Mon, Sep 3, 2018 at 2:36 PM Francis Daly mailto:fran...@daoine.org>> wrote: On Mon, Se

Re: Rewrite with number after hyphen

2018-09-05 Thread Ivan Bianchi
Hi Francis, many thanks for your response and guidelines. Indeed you were right that there was another location capturing the request. Best regards, On Mon, Sep 3, 2018 at 2:36 PM Francis Daly wrote: > On Mon, Sep 03, 2018 at 08:13:11AM +0200, Ivan Bianchi wrote: > > Hi there, > > > > location

Re: Rewrite with number after hyphen

2018-09-03 Thread Francis Daly
On Mon, Sep 03, 2018 at 08:13:11AM +0200, Ivan Bianchi wrote: Hi there, > > location /foo { > > rewrite /foo/(.*) /web/foo.do?a=$1 last; > > } This seems to work as expected for me, using nginx/1.14.0. > KO: > > > https://www.test.com/foo/asdf-12 Why do you think it does not work? What is the

Rewrite with number after hyphen

2018-09-02 Thread Ivan Bianchi
Hi, I detected an issue with my rewrite rule in the nginx.conf and I don't understand why it happens and how to fix it. I have tested in two environments with versions 1.10.3 and 1.14.0. Having the following simple conf with a regex is intended to get everything: > location /foo { > rewrite /fo