On Sat, Apr 18, 2015 at 04:08:54PM -0400, nicocolt wrote: Hi there,
> if ($http_host = "subdomain.domain.fr") { > rewrite ^(?!/\b(subpath|stats|error)\b)/(.*)$ /subpath/$2 last; > } > > if in my browser i write: > host.domain.fr/admin (without last /), then I'm redirected to > host.domain.fr/host.domain/admin/ (with a 404 error of course) Are you reporting that when you have the three lines above in your config, you get this behaviour; and when you remove those three lines from your config, you do not get this behaviour? Because that seems strange. Thanks, f -- Francis Daly fran...@daoine.org _______________________________________________ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx