Fix for nginx rewrite rule and when twip in web_root