Ask Your Question
0

How to configure ALLOWED_HOSTS in DevStack using local.conf?

asked 2016-11-23 08:07:01 -0500

Aleksandar gravatar image

I'm trying to build fully functional single-vm (Ubuntu 16.04) based DevStack. So far, I've assembled the local.conf file that works for most of the services I need, but trying to access Horizon returns the "Internal Server Error" message. The error message in ~/logs/horizon.log reveals the following error:

DisallowedHost: Invalid HTTP_HOST header: 'stack.local.lan'. You may need to add u'stack.local.lan' to ALLOWED_HOSTS.

How can I configure local.conf to include "ALLOWED_HOSTS" configuration through './stack.sh'?

Thank you in advance,

Aleksandar

edit retag flag offensive close merge delete

Comments

Perhaps something like

[[ post-config | /opt/stack/horizon/openstack_dashboard/local/local_settings.py ]]
ALLOWED_HOSTS=['*']

See http://docs.openstack.org/developer/d.... Not sure if pathnames are allowed in this clause.

Bernd Bausch gravatar imageBernd Bausch ( 2016-11-23 19:20:45 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-11-23 12:17:03 -0500

luz-cazares gravatar image

Look for django configuration and horizon setup

https://github.com/openstack/horizon/blob/bbf6a5df56dc7b9055f84387731bec50d7652e24/openstack_dashboard/local/local_settings.py.example#L29 (https://github.com/openstack/horizon/...)

http://docs.openstack.org/developer/horizon/quickstart.html#setup (http://docs.openstack.org/developer/h...)

https://docs.djangoproject.com/en/1.10/ref/settings/ (https://docs.djangoproject.com/en/1.1...)

Good luck ;)

edit flag offensive delete link more
0

answered 2016-11-24 01:02:10 -0500

Aleksandar gravatar image

Thank you very much! This is exactly what I'm looking for. This will also address the second issue I have - enabling the domain support in Horizon on the DevStack installation.

Regards,

Aleksandar

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: 2016-11-23 08:07:01 -0500

Seen: 507 times

Last updated: Nov 24 '16