我已经安装了打开堆栈,当我在本地运行192.168.1.66时,它显示打开堆栈的仪表板,但是当我通过公共访问它时,它将显示Apache的默认页面。我正在最小使用centos 7.0。我如何将本地IP重定向到公共IP,以便它打开开放堆栈仪表板。
答案 0 :(得分:1)
在该Apache实例与您的OpenStack Horizon仪表盘之间似乎什么也没发生。您可以在Apache中添加新的vhost并创建简单的反向代理。假设.dropdownwithscroll {
position:absolute;
top:-9999px;
}
.dropdownwithscroll.active {
top:0;
}
:
/etc/httpd/conf.d/openstack.conf
然后确保至少启用了<VirtualHost *:80>
# You can set here your domain name (if you have one), your public IP address
# or just leave it like this, just as a placeholder:
server_name _
ProxyPass "/" "http://192.168.1.66/"
ProxyPassReverse "/" "http://192.168.1.66/"
</VirtualHost>
和mod_proxy
模块。您可以通过运行以下命令进行检查:
mod_proxy_http
如果没有,请在httpd -M |grep -i proxy
文件中启用它们(通过取消注释相应的/etc/httpd/conf.modules.d/00-proxy.conf
行)。
我也建议禁用默认的虚拟主机,以防万一。