Fix/web rp

Hi,
I propose this patch that fixes accessing to the web interface through a reverse proxy. I've tested it using nginx frontend.
Regards