サブドメインでhttps
やりたいこと
1台のマシンで
http://example.com/ https://hoge.example.com/ http://example.net/ http://example.org/
とか使いたい。
この中で、
https://hoge.example.com/
が出来なかった。
https://example.com/
と、
http://hoge.example.com/
なら出来た。合わせたい。
ググる
http://www.apache.jp/pipermail/apache-users/2003-May/002708.html
http://www.jp.redhat.com/manual/Doc9/rhl-cg-ja-9/s1-httpd-virtualhosts-settings.html
名前ベースの仮想ホストとSSLを同時に使用することはできません
無理らしい。
do
基本的に上のページを見つつ。
NameVirtualHost *:443 <VirtualHost *:443> ServerName hoge.example.com <Location /hoge> SSLRequireSSL # anything you want </Location> </VirtualHost>
<VirtualHost *:80> ServerName example.net # anything you want </VirtualHost>
やれば出来るもんだ。