Tuesday, March 7, 2017

Horizon Dashboard on Google Console

To get the horizon dashboad on Google Console (cloud)

1> Modify following file

/etc/httpd/conf.d/15-horizon_vhost.conf

Add ServerAlias for public ip address (similar to private ip address)
&
Restart httpd

# service httpd restart

2> This needs to be done for every start.

3> Sample file

<VirtualHost *:80>
  ServerName cloud.centos.lan

  ## Vhost docroot
  DocumentRoot "/var/www/"
  ## Alias declarations for resources outside the DocumentRoot
  Alias /dashboard/static "/usr/share/openstack-dashboard/static"

  ## Directories, there should at least be a declaration for /var/www/

  <Directory "/var/www/">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Require all granted
  </Directory>

  ## Logging
  ErrorLog "/var/log/httpd/horizon_error.log"
  ServerSignature Off
  CustomLog "/var/log/httpd/horizon_access.log" combined

  ## RedirectMatch rules
  RedirectMatch permanent  ^/$ /dashboard

  ## Server aliases
  ServerAlias 10.128.0.2
  ServerAlias cloud.centos.lan
  ServerAlias localhost
  Serveralias 104.154.48.28
  WSGIDaemonProcess apache group=apache processes=3 threads=10 user=apache
  WSGIProcessGroup apache
  WSGIScriptAlias /dashboard "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi"
</VirtualHost>

4> Now access it

http://104.154.48.28/dashboard

User & password is OS_USERNAME (admin) and OS_PASSWORD in /root/keystonerc_admin

No comments:

Post a Comment