ServiceStack/ServiceStack — pull request #852 by jamesgroat (2013-10-22 00:16:06+00:00)
Title: Stop initializing ApplicationBaseUrl automatically

### Initializing the ApplicationBaseUrl automatically has an unintended side affect. ###

If you happen to hit the server locally at http://localhost and then later from http://somehostname -- the default redirect will send the user to http://localhost/somepath instead of http://somehostname/somepath

### Notes ###

This commit fixed my issue locally. I'm not certain why this base application url was being set by default. Since I'm not sure why it was being set I can't evaluate the side affects to what I did here. Please be **sure** that there aren't bad side affects before merging. If there are side affects, is there a better way to fix?

I do not want to set the config.WebHostUrl to anything specific, I'd rather just let the server correctly handle redirects using relative url.

One other note -- I updated my fork w/ all of the changes from the base -- but now that commit is showing up in this pull request even tho it corretly is only showing the one file changed. I'm not sure how to exclude commit f77ff33 in GitHub pull request.