moving redirect to nginx