TenForward

技術ブログ。はてなダイアリーから移転しました

RFC2817

ちょい時間が取れるようになったので,内職企画で Apache 2.2 からサポートという話の RFC2817 を設定してみました.

とは言っても,こちら(Upgrading to TLS(RFC2817)の設定をApache2.2にしてみる|でびぞー徒然日記) に書いてあるのそのままなんですけどね.

httpd.conf から Include している httpd-vhost.conf 内で

<VirtualHost *:80>
  ServerName  test.example.com

  SSLEngine   Optional

  SSLCertificateFile /etc/httpd/server.crt
  SSLCertificateKeyFile /etc/httpd/server.key

  <Directory /var/www/rfc2817>
     SSLRequireSSL
  </Directory>
</VirtualHost>

という風に書いて,例えば http://test.example.com/rfc2817/ とやると

HTTP/1.x 426 Upgrade Required
Date: Thu, 13 Dec 2007 11:15:13 GMT
Server: Apache/2.2.0 (Unix) mod_ssl/2.2.0 OpenSSL/0.9.8e PHP/5.2.3
Upgrade: TLS/1.0, HTTP/1.1
Connection: Upgrade, Keep-Alive
Content-Length: 385
Keep-Alive: timeout=5, max=100
Content-Type: text/html; charset=iso-8859-1

こんな感じの応答が返ってきてます.

ま,まだブラウザが対応してないので,"Upgrade Required" とブラウザにエラー表示されて終わりですけど.firefox 3 のベータも未対応でした.