Hi Francis
Ok. Many thanks for your interest of my problem.
Best regards
Nico
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,258184,258308#msg-258308
___
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
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
> subdom
Hello Francis,
server {
listen *:80;
server_name domain.fr www.domain.fr subdomain.domain.fr;
root /var/www/domain.fr/web;
if ($http_host = "subdomain.domain.fr") {
rewrite ^(?!/\b(bar|stats|error)\b)/(.*)$ /bar/$2 last;
}
index i
On Mon, Apr 20, 2015 at 04:12:11AM -0400, nicocolt wrote:
Hi there,
> I have set a new server block, but i'm facing with the initial problem.
>
> So let me re-explain it.
>
> Now i have:
>
> server name stuff.domain.fr
> root /var/www/domain.fr/web/subdomain;
On your test system which shows t
Hi Francis,
I have set a new server block, but i'm facing with the initial problem.
So let me re-explain it.
Now i have:
server name stuff.domain.fr
root /var/www/domain.fr/web/subdomain;
In the subdomain directory i have foo firectory
/var/www/domain.fr/web/subdomain/foo/
so now in my browse
On Sun, Apr 19, 2015 at 09:53:43AM -0400, nicocolt wrote:
Hi there,
> I don't understand how to proceed in order to see only
> http://subdomain.domain.fr/directory/ instead of
> http://subdomain.domain.fr/subdomain/directory/
I'll still suggest
root /var/www/domain.fr/web/subdomain;
in a sep
Hello,
you're right, my rewrite says that my request is handle like
http://subdomain.domain.fr/subdomain/directory/. But it is not that i want.
I want that my request is handled like this:
http://subdomain.domain.fr/directory/ and i don't want see the intermediate
path. I don't understand how to
On Sun, Apr 19, 2015 at 04:06:55AM -0400, nicocolt wrote:
Hi there,
> Here is the directory path:
>
> /var/www/domain.fr/web/subdomain/directory
>
> my nginx conf is:
>
> root /var/www/domain.fr/web
>
> if ($http_host = "subdomain.domain.fr") {
> rewrite ^(?!/\b(subdomain|stats|er
Hello
Thanks for your reply.
If I remove the three lines, i get a 404 error. As a reminder, and maybe a
little bit more clear :) here is the configuration.
Here is the directory path:
/var/www/domain.fr/web/subdomain/directory
my nginx conf is:
root /var/www/domain.fr/web
if ($http_host = "
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.d
Hello,
I have an issue with a rewrite rule for redirect to a subdomain. Here it
is:
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
11 matches
Mail list logo