centos 7 配置https
来源:互联网 发布:想做淘宝刷单hao360 编辑:程序博客网 时间:2024/06/05 02:19
# yum install mod_ssl# mkdir /etc/httpd/ssl# vi /etc/httpd/conf.d/ssl.conf
修改下面几行:
DocumentRoot “/var/www/html”
ServerName www.yourdomain.com:443
SSLCertificateFile /etc/httpd/ssl/ca.crt
SSLCertificateKeyFile /etc/httpd/ssl/myserver.key
SSLCertificateKeyChainFile /etc/httpd/ssl/chain.crt
把相应的ca.crt、chain.crt和myserver.key放入/etc/httpd/ssl
重启Apacha:
# systemctl restart httpd.service
设置http跳转到https:
# vi /etc/httpd/conf/httpd.conf
加入下面3行:
RewriteEngine onRewriteCond %{SERVER_PORT} !^443$RewriteRule ^/?(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
重启Apache
0 0
- centos 7 配置https
- CentOS 配置https
- Centos下apache配置https
- centos的nginx+https配置
- centos apache 最新版HTTPS配置
- centos配置https(nginx,apache)
- Centos 6.5 Nginx 配置 https
- centos nginx配置https访问
- centos下https详细配置-SSL
- 在CentOS配置Apache的HTTPS服务
- 在CentOS配置Apache的HTTPS服务
- Linux(centos)上配置https
- Centos 6.9 配置 Tomcat 9 https
- 阿里云CentOS下Tomcat配置https
- CentOS下Nginx的HTTPS配置
- linux centos 下 配置https服务器的方法
- ECS CentOS 6.5系统下Apache配置https服务
- centos lnmp环境配置ssl证书支持https访问
- 现代操作系统与应用开发
- centos 7 开机启动项
- EventBus-的使用
- Shiro的认证和权限控制
- Codeforces Gym 100338I TV Show DFS
- centos 7 配置https
- 小白写基金——点滴积累
- JS之函数理解
- Swust OJ 001 Satellite Photographs
- hihocoder #1224 : 赛车 dfs
- 做项目开发后目前有的域名
- Volley深度完全解析
- Android中如何使用WIFI来连接ADB
- node.js http