Welcome to Elvin's blog

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  blog-elvin-vip  阅读(1735)  评论(0编辑  收藏  举报