Make compatible with reverse proxies