openstack配置域名访问

#openstack配置域名访问

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

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

#配置域名 yun.test.com  cloud.test.com
echo '#openstack
<VirtualHost *:>
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
上一篇:【POJ】1160 Post Office


下一篇:vue配置域名访问