Ask Your Question

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 './'?

Thank you in advance,


edit retag flag offensive close merge delete


Perhaps something like

[[ post-config | /opt/stack/horizon/openstack_dashboard/local/ ]]

See 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

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.



edit flag offensive delete link more

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

luz-cazares gravatar image

Look for django configuration and horizon setup ( ( (

Good luck ;)

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


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

Seen: 728 times

Last updated: Nov 24 '16