Welcome! Log In Create A New Profile

Advanced

Re: rewrite rules issue

Francis Daly
April 21, 2015 04:50PM
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@daoine.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

rewrite rules issue

nicocolt April 18, 2015 04:08PM

Re: rewrite rules issue

Francis Daly April 18, 2015 05:04PM

Re: rewrite rules issue

nicocolt April 19, 2015 04:06AM

Re: rewrite rules issue

Francis Daly April 19, 2015 07:06AM

Re: rewrite rules issue

nicocolt April 19, 2015 09:53AM

Re: rewrite rules issue

Francis Daly April 19, 2015 06:52PM

Re: rewrite rules issue

nicocolt April 20, 2015 04:12AM

Re: rewrite rules issue

Francis Daly April 20, 2015 09:06AM

Re: rewrite rules issue

nicocolt April 21, 2015 09:26AM

Re: rewrite rules issue

Francis Daly April 21, 2015 04:50PM

Re: rewrite rules issue

nicocolt April 22, 2015 02:35PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 309
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