rewrite rules issue

Francis Daly francis at
Tue Apr 21 20:48:54 UTC 2015

On Tue, Apr 21, 2015 at 09:26:59AM -0400, nicocolt wrote:

Hi there,

> server {
>         listen *:80;
>         server_name;

This doesn't match what I thought you had done.

> So if host is, then the url is rewrite to
> Then now if in bar i have foo
> if i try to reach then ok
> if i try to reach then i'm redirect to
> NOT ok

I suspect I'm not going to be able to give you the answer you want,
so I'll leave it for someone else.

Good luck with it,

Francis Daly        francis at

More information about the nginx mailing list