找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 7|回复: 0

求助:apache 的虚拟主机SSL如何配置?

[复制链接]

21

主题

260

回帖

605

积分

高级会员

积分
605
发表于 2013-7-11 14:37:54 | 显示全部楼层 |阅读模式
/usr/local/apache/conf/extra/httpd-ssl.conf
内容:

【修改后】DocumentRoot "/home/www/default"
【新增加本行】DirectoryIndex index.html forum.php index.php
ServerName www.example.com:443
ServerAdmin you@example.com
ErrorLog "/usr/local/apache/logs/error_log"
TransferLog "/usr/local/apache/logs/access_log"
SSLEngine on
SSLCertificateFile "/usr/local/apache/conf/server.crt"
SSLCertificateKeyFile "/usr/local/apache/conf/server.key"

    SSLOptions +StdEnvVars


    SSLOptions +StdEnvVars

BrowserMatch "MSIE [2-5]" \
         nokeepalive ssl-unclean-shutdown \
         downgrade-1.0 force-response-1.0
CustomLog "/usr/local/apache/logs/ssl_request_log" \
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"




IP访问正常,如果随便配置一下虚拟主机,就500 Internal Server Error
虚拟主机该如何配置?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Discuz! X

GMT+8, 2025-1-18 17:02 , Processed in 0.021354 second(s), 6 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表