Apache httpd 配置HTTPS SSL访问 443 |
您所在的位置:网站首页 › Debian10开启443端囗不能访问 › Apache httpd 配置HTTPS SSL访问 443 |
2, 首先安装https模块
yum install mod_ssl
3. 配置Apache Web服务器 首先,修改下面的配置文件。仅需配置红色部分 SSLCertificateFile 和 SSLCertificateKeyFile # vim /etc/httpd/conf.d/ssl.conf # # When we also provide SSL we have to listen to the # the HTTPS port in addition. # Listen 443 https ## ## SSL Virtual Host Context ## # General setup for the virtual host, inherited from global configuration DocumentRoot "/var/www/html/a.com" ServerName www.a.com:443 ### overwrite the following parameters ### SSLCertificateFile /etc/pki/tls/certs/server.crt SSLCertificateKeyFile /etc/pki/tls/private/server.key ### The following parameter does not need to be modified in case of a self-signed certificate. ### ### If you are using a real certificate, you may receive a certifica |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |