Initial mods to support nginx (minus mod_rewrite checks)