Ask Your Question
0

Can't access Horizon by hostname

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

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

Comments

ping mylab from machine B works?

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

yes, telnet to port 80 works as well.

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

can anyone help?

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

1 answer

Sort by ยป oldest newest most voted
1

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

Shaik Saddam Hussain gravatar image

Hi,

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 514 times

Last updated: Jan 09 '17