apache - 如何在我的 ec2 ami apache 服务器上启用 https

标签 apache ssl amazon-web-services amazon-ec2

我已经从 Internet 上的权威机构购买了 ssl 证书。我只是在安装证书和在我的服务器上启用 https 时遇到问题。我只获得了证书和私钥。我该如何将这些文件复制到我的服务器并启用 https。

注意:我正在运行一个亚马逊微实例

最佳答案

首先尝试使用以下命令在您的服务器上安装 mod_ssl

 yum install mod_ssl 

安装后,您可以使用 SSL 证书详细信息更新 httpd 配置文件。

SSLEngine on
SSLCertificateFile /etc/httpd/conf/ssl.crt/mydomain.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/mydomain.key

关于apache - 如何在我的 ec2 ami apache 服务器上启用 https,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33521965/

相关文章:

amazon-web-services - 保护 AWS API Gateway 后面的现有 API

Homebrew 安装的 PHP7 不适用于 macOS 上的 Apache

php - 包含句点或点的 URL 在 PHP 中给出 403 禁止错误

postgresql - SonarQube:如何连接到支持 SSL 的 Google Cloud Postgresql 服务器

sql-server - 仅恢复 AWS RDS Sql Server 实例中的一个数据库

amazon-web-services - AWS Glue 无法从爬虫 : permission denied 创建数据库

apache - Htaccess 重定向命令不区分大小写

php - 在什么情况下可以在浏览器中查看 PHP 文件的源代码?

authentication - 除非启用 SSL 调试,否则 Web 服务 SSL 握手在生产环境中失败

http - JW Player 不适用于 https