The problem is in keystone/service.py and pulling in keystone/controller.py.
http://git.openstack.org/cgit/openstack/keystone/tree/keystone/controllers.py#n117
self.base_url comes from wsgi:
http://git.openstack.org/cgit/openstack/keystone/tree/keystone/common/wsgi.py#n355
admin_url or main_url needs to be set correctly in the config file. Otherwise, it falls back to host_url.
The problem is in keystone/service.py and pulling in keystone/ controller. py.
http:// git.openstack. org/cgit/ openstack/ keystone/ tree/keystone/ controllers. py#n117
self.base_url comes from wsgi:
http:// git.openstack. org/cgit/ openstack/ keystone/ tree/keystone/ common/ wsgi.py# n355
admin_url or main_url needs to be set correctly in the config file. Otherwise, it falls back to host_url.