Can't access Horizon by hostname

asked 2017-01-09 04:41:30 -0600

mmisztal gravatar image
  • I've got 2 machines, A and B.
  • Machine A's hostname is 'mylab'
  • I've installed an all-in-one OpenStack using PackStack on machine A
  • I've modified the host file on machine B so that 'mylab' can be resolved as A's IP.

When accessing: - http://{machine A's IP}/dashboard - I'm seeing the Horizon dashboard as expected - http://mylab/dashboard - I'm getting an Apache-generated 404 error

Obviously, I'd like to access Horizon via the 'mylab' hostname, so what do I need to configure in order to fix this?

Best regards

edit retag flag offensive close merge delete


ping mylab from machine B works?

modesto gravatar imagemodesto ( 2017-01-09 04:51:39 -0600 )edit

yes, telnet to port 80 works as well.

mmisztal gravatar imagemmisztal ( 2017-01-09 14:33:15 -0600 )edit

can anyone help?

mmisztal gravatar imagemmisztal ( 2017-01-10 09:45:56 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2017-02-24 05:26:17 -0600

Shaik Saddam Hussain gravatar image


For accessing horizon dashboard using hostname, you needs to be updating ServerAlias to make this accessible via hostname.

Edit /etc/httpd/conf.d/15-horizon_vhost.conf file and add another line just below ServerAlias localhost as ServerAlias mylab

Now restart your httpd services and try accessing your dashboard via hostname from web browser.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-01-09 04:41:30 -0600

Seen: 934 times

Last updated: Jan 09 '17