openstack输入IP直接显示登录界面
vi /etc/apache2/apache2.conf 把以下内容注释掉,默认没有注释
#<Directory />
# Options FollowSymLinks
# AllowOverride None
# Require all denied
#</Directory>
#
#<Directory /usr/share>
# AllowOverride None
# Require all granted
#</Directory>
#
#<Directory /var/www/>
# Options Indexes FollowSymLinks
# AllowOverride None
# Require all granted
#</Directory>
vi /etc/apache2/conf-enabled/openstack-dashboard.conf 把/horizon换成/
WSGIScriptAlias /horizon /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
另一种方法是网页跳转
把默认的index.html内容替换成下面内容
<html>
<head>
<meta http-equiv="Content-Language" content="zh-CN">
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<meta http-equiv="refresh" content="0.1;url=http://IP/horizon/">
<title></title>
</head>
<body>
</body>
</html>