use nginx to solve trailing slashes problem