Fix #774. I tried "request.host", but request is nil there. This seems g...

...ood enough. (TODO: Check that it actually works on redeploy.)