LPS-43510 localhost virtualhost

Hi Julio,

Seems doesn't break anything. I've tested even using load balancer...

@sergiogonzalez Maybe you want to see the second commit, for avoiding LPS-42068 again.

Thanks!