openstack配置域名访问

#openstack配置域名访问

 openstack pike 安装 目录汇总 http://www.cnblogs.com/elvi/p/7613861.html

#主要是在默认配置的基础上,做了个url 301跳转

#配置域名 yun.test.com  cloud.test.com
echo '#openstack
<VirtualHost *:80>
ServerName     yun.test.com
ServerAlias    cloud.test.com
#DocumentRoot   /usr/share/openstack-dashboard

#url
RedirectMatch permanent  ^/$ /dashboard

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

</VirtualHost>
'>/etc/httpd/conf.d/openstack-domain.conf

#检测配置文件
httpd -t

#重启http
systemctl restart httpd

 

posted @ 2017-12-08 14:26 子隐 阅读(...) 评论(...) 编辑 收藏