auser / poolparty

Run a self-healing, auto-scaled and monitored cloud simply, in the clouds, on nearly any hardware, such as EC2, eucalyptus and vmware
http://www.poolpartyrb.com
MIT License
371 stars 54 forks source link

Haproxy doesn't work because there's no hosts for VirtualHost *:8080 #7

Closed contentfree closed 15 years ago

contentfree commented 15 years ago

The default site (vendor/chef/apache2/templates/default/default-site.erb) is for VirtualHost *:80.

ports.conf correctly tells Apache to Listen on 8080 and create a NameVirtualHost for 8080, but because of the above default site there's nothing that responds at 8080 and haproxy reports everything down.

contentfree commented 15 years ago

This should be fixed in my commit 8392fce91da8d759097377a120a3ddf0f78775f6 to contentfree/vmrun

auser commented 15 years ago

Fixed in latest 1.2.3. Must include haproxy block after apache block. Also, you can now use the calls => helper for plugins. I.e.:


      haproxy do
        calls get_exec("reload-apache2") 
      end