rewrite rules issue

nicocolt nginx-forum at
Mon Apr 20 08:12:11 UTC 2015

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
root /var/www/;

In the subdomain directory i have foo firectory

so now in my browser when i reached i see the page
index.html in subdomain folder. But if i reached, i'm redirected to ->
404, i see the page index.html in foo folder

Well i'm lost, two days trying to make this work. Seems that the trailling
slah has an impact on how the request is handle by nginx.

Thanks for your help
Best regards,

Posted at Nginx Forum:,258184,258208#msg-258208

More information about the nginx mailing list