- enta2013-07-11金牌会员54893
/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](mailto: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
虚拟主机该如何配置?