サブドメインでrailsを公開する
いまexample.jpでサイトを運営している。
rails.example.jpというrailsサイトを追加したい。
NameVirtualHost *:80
ServerName example.jp
DocumentRoot "/home/example/www"
ServerName rails.example.jpProxyPass / balancer://rails/
ProxyPassReverse / balancer://example/
BalancerMember http://127.0.0.1:5000 loadfactor=20
BalancerMember http://127.0.0.1:5001 loadfactor=20
さらにドメイン屋さんにいって「rails.example.jp」でもうちにきてもらうように設定する。
a rails 123.456.123.456
以下のサイトにお世話になりました。有益な情報をありがとうございます。
ヽ( ・∀・)ノくまくまー(2007-06-05)
http://wota.jp/ac/?date=20070605
apache2.2 バーチャルホストの設定 後編
http://kazmax.zpp.jp/apache/apache5.html#ah_1
バーチャルホストでサブドメインを作成
http://www.jitaku-server.net/apache_virtualhost.html