I''m currently running a dashboard as a separate process and have a proxy in apache with authentication to access as http://puppet.ourhost.com/dashboard/ I have to start the dashboard with "-P /dashboard" option to make it work. I''m wondering how to achieve this with passenger. The config I found in ext/passanger seems to run the dashboard under the root of the virtual host. -- Radek -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Jacob Helwig
2010-Oct-18 16:36 UTC
Re: [Puppet Users] Dashboard and passenger under /dashboard path
On Fri, 15 Oct 2010 13:56:13 -0700, Radek wrote:> > I''m currently running a dashboard as a separate process and have a > proxy in apache with authentication to access as http://puppet.ourhost.com/dashboard/ > > I have to start the dashboard with "-P /dashboard" option to make it > work. > > I''m wondering how to achieve this with passenger. The config I found > in ext/passanger seems to run the dashboard under the root of the > virtual host. > > -- > Radek >http://www.modrails.com/documentation/Users%20guide.html#deploying_rails_to_sub_uri has instructions on doing this. Basically, you add a symlink to the public folder of Puppet Dashboard from inside your existing vhost''s DocumentRoot, and add a RailsBaseURI directive to the vhost configuration. cd /var/www && ln -s ../../usr/share/puppet-dashboard/public dashboard vhost.conf: <VirtualHost *:80> ServerName example.com DocumentRoot /var/www RailsBaseURI /dashboard ... </VirtualHost> I don''t think Puppet Dashboard <= 1.0.3 has been tested with this setup, but >= 1.0.4rc2 should work just fine. -- Jacob Helwig