Revision history [back]

click to hide/show revision 1
initial version

On Ubuntu you will need to edit /etc/apache2/conf-available/openstack-dashboard.conf It is the same file in a slightly different location on RHEL.

Append this rule to the bottom of the file

RewriteEngine on
RewriteRule ^(.*)$ http://ipaddress_of_webserver/maintenance.html [R=302,L]

If you want only a few ip addresses to be able to access the site and not be redirected, modify the ip address below with the ip addresses you want to bypass the redirect rule.

RewriteEngine on
RewriteCond %{REMOTE_HOST} !^123\.45\.67\.89
RewriteRule ^(.*)$ http://ipaddress_of_webserver/maintenance.html [R=302,L]

For those unaware of this syntax, RewriteCond %{REMOTE_HOST} !^123\.45\.67\.89 means "Rewrite Condition matches everyone that does not equal 123.45.67.89"

On Ubuntu you will need to edit /etc/apache2/conf-available/openstack-dashboard.conf It is the same file in a slightly different location on RHEL.

Append this rule to the bottom of the file

RewriteEngine on
RewriteRule ^(.*)$ http://ipaddress_of_webserver/maintenance.html [R=302,L]

If you want only a few ip addresses to be able to access the site and not be redirected, modify the ip address below with the ip addresses you want to bypass the redirect rule.

RewriteEngine on
RewriteCond %{REMOTE_HOST} !^123\.45\.67\.89
RewriteRule ^(.*)$ http://ipaddress_of_webserver/maintenance.html [R=302,L]

For those unaware of this syntax, RewriteCond %{REMOTE_HOST} !^123\.45\.67\.89 means "Rewrite Condition matches everyone that does not equal 123.45.67.89"


If you are not running another website on the server, you can get horizon to show up on the root of the webserver by modifying the following files to match below.

/etc/apache2/conf-available/openstack-dashboard.conf

WSGIScriptAlias / /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi

/etc/openstack-dashboard/local_settings.py

LOGIN_URL='/auth/login/'
LOGIN_REDIRECT_URL='/'