gpt4 book ai didi

apache - 在 Ubuntu 14.04 中的 apache2 上安装 SSL

转载 作者:太空宇宙 更新时间:2023-11-03 14:53:22 24 4
gpt4 key购买 nike

我正在尝试在我的 apache2.4.7 ubuntu 14.04 服务器上安装 ssl我正在学习 digital ocean 教程 here但它一直将我重定向到普通的 http 版本。这是我在 sites-available 中的 000-default.conf(即使我删除了全部内容,它仍然会加载我的网站)

<VirtualHost *:443>
ServerName xxxxxx.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html

SSLEngine on
SSLCertificateFile /etc/apache2/ssl/xxxxxx.com.crt
SSLCertificateKeyFile /etc/apache2/ssl/xxxxxx.com.key
SSLCertificateChainFile/etc/apache2/ssl/intermediate.crt

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

最佳答案

看起来你有一个进程在 443 端口上运行,所以当 apache 试图访问它时,它失败了。

netstat -tlpn | grep 443

用它来找出哪个进程正在使用它。它还应该为您提供进程 ID。 service <process> stop或者 kill <processID>杀死正在使用您的 443 端口的进程。清除您的 Apache 日志并重新启动 Apache。

关于apache - 在 Ubuntu 14.04 中的 apache2 上安装 SSL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32218634/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com