小编use*_*704的帖子

无法让 SSL 与 Apache 一起工作

好的,所以我正在尝试将我的服务器配置为接受 SSL 连接,但我无法让它工作。我知道网站上有很多类似的问题,但到目前为止我遇到的每个问题似乎都没有帮助。

我会发布尽可能多的信息,希望能对您有所帮助。

我的 apache 版本是:2.2.14(在 Ubuntu 上运行)。下面的信息似乎表明 SSL 已配置且运行良好,但是当我尝试访问https://website.com 时,请求超时。

我通过 GoDaddy 获得了 SSL 证书,并按照流程生成了 .crt 文件。

我有以下文件:

/home/ubuntu/ssl/website.com.crt
/home/ubuntu/ssl/website.com.key
/home/ubuntu/ssl/gd_bundle.crt
Run Code Online (Sandbox Code Playgroud)

根据我的配置文件:

/etc/apache2/ports.conf

NameVirtualHost *:80
NameVirtualHost *:443
Listen 80
Listen 443
Run Code Online (Sandbox Code Playgroud)

/etc/apache2/sites-enabled/000-default-ssl

<VirtualHost *:443>
ServerAdmin webmaster@localhost
ServerName website.com

DocumentRoot /var/www
<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>
<Directory /var/www/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
    AllowOverride None
    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    Order allow,deny
    Allow from …
Run Code Online (Sandbox Code Playgroud)

ubuntu ssl https apache-2.2

2
推荐指数
1
解决办法
6893
查看次数

标签 统计

apache-2.2 ×1

https ×1

ssl ×1

ubuntu ×1