nginx conf rewrite and grid additions