Horizon via IP address of a 2nd interface

asked 2016-05-24 21:58:13 -0600

kthomas gravatar image

updated 2016-05-25 06:54:51 -0600

I installed Liberty using Packstack on CentOS 7. I would like to access Horizon via an interface on the controller other than the one specified for the controller in the answers.txt file (another physical interface on the same server with its own IP address). Is this possible? Currently, attempting to access horizon via the other interface results in a SYN to the server and a RST response from the server. No entries are added to the horizon log or the httpd error or access logs. Accessing via the normal controller interface works fine.

edit retag flag offensive close merge delete


Apache servers Horizon, configure Apache to Listen on the other interface

rduncan-t gravatar imagerduncan-t ( 2016-05-25 06:52:29 -0600 )edit

+1 for @rduncan suggestion

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2016-05-25 09:04:43 -0600 )edit

ServerAlias for the 2nd IP address in /etc/httpd/conf.d/15-horizon_vhost.conf did not help. /etc/httpd/conf/httpd.conf has no Listen for 80 or 443 but Horizon works fine on the original interface. /etc/openstack-dashboard/local_settings, ALLOWED_HOSTS = ['*',] already set. Another config location?

kthomas gravatar imagekthomas ( 2016-05-25 13:13:07 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2016-07-06 02:36:27 -0600

ariksa gravatar image

updated 2016-07-06 02:38:14 -0600

You need to edit /etc/httpd/conf.d/15-horizon_vhost.conf. By default, it includes something like:

## Server aliases
ServerAlias localhost

You have to add your new IP:

ServerAlias <your_new_desired_IP>

Restart the server after this change.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-05-24 21:58:13 -0600

Seen: 2,056 times

Last updated: Jul 06 '16