Fix some analyzer warnings.
Use virtual host style endpoints.