generate nginx-redirect.conf automatically (fixed #104)