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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM