Change http_host to server_name so redirects work as expected.