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:
ServerName example.com
DocumentRoot /var/www
RailsBaseURI /dashboard
...
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
signature.asc
Description: Digital signature