Adding support for reverse-proxying