rewrite rules issue

Francis Daly francis at daoine.org
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 domain.fr www.domain.fr subdomain.domain.fr;

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

> So if host is subdomain.domain.fr, then the url is rewrite to
> subdomain.domain.fr/bar/
> 
> Then now if in bar i have foo
> 
> if i try to reach http://subdomain.domain.fr/foo/ then ok
> if i try to reach http://subdomain.domain.fr/foo then i'm redirect to
> http://subdomain.domain.fr/bar/foo/ 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,

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list