<IfDefine SSL>
<VirtualHost 192.168.100.42:443>
DocumentRoot "/usr/local/www/htdocs_secure" ← 通常のHTTPサービスとは別のものを指定した方がよい
ServerName event.xxx.co.jp
ServerAdmin supp-evt@xxx.co.jp
ErrorLog /usr/local/www/logs/error_log
TransferLog /usr/local/www/logs/access_log
SSLEngine on ← SSLを有効にする
SSLCertificateFile /usr/local/www/certs/server.crt ← サーバ証明書
SSLCertificateKeyFile /usr/local/www/certs/server.key ← サーバ秘密鍵
<Files ~ "\.(cgi|shtml)$">
SSLOptions +StdEnvVars
</Files>
<Directory "/usr/local/www/cgi-bin">
SSLOptions +StdEnvVars
</Directory>
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
CustomLog /usr/local/www/logs/ssl_request_log \
"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
</VirtualHost>
</IfDefine>
|