Add nginx rewrite rules, fix #5