And like magic, I made three changes, and it works.  Thanks a lot!

First, because mod_passenger was being loaded already by the standard 
Apache config, I just let Apache use it. 
- LoadModule passenger_module 
/var/lib/gems/1.8/gems/passenger-2.2.11/ext/apache2/mod_passenger.so
+ #LoadModule passenger_module 
/var/lib/gems/1.8/gems/passenger-2.2.11/ext/apache2/mod_passenger.so

Second, I changed PassengerRoot to match your setup.  
- PassengerRoot /usr/lib/phusion_passenger 
+ #PassengerRoot /usr/lib/phusion_passenger
+ PassengerRoot /usr

Third I set Options to None (also to match your setup). I previously had 
Options set to None, so I'm not really sure if this was the big game 
changer. But I'm sticking to it for now as it works!

Thanks again
David
  

On Monday, March 19, 2012 4:11:39 PM UTC, fsalum wrote:
>
> I had the same issue too, so I had to make a few changes on my virtualhost 
> to work. Try changing your Options to None and confirm that your 
> PassengerRoot and module path are correct. 
>
> I'm attaching my working virtualhost for you to compare:
>
>
> LoadModule passenger_module /usr/lib/apache2/modules/mod_passenger.so
> PassengerRoot /usr
> PassengerRuby /usr/bin/ruby
>
> <VirtualHost *:3000>
>         SetEnv RAILS_ENV production
>         RackBaseURI /
>
>         ServerName X.X.X.X
>         DocumentRoot /usr/share/puppet-dashboard/public/
>         <Directory /usr/share/puppet-dashboard/public/>
>                 Options None
>                 Order allow,deny
>                 allow from all
>         </Directory>
> ....
> </VirtualHost>
>
> Felipe
>
> On Mon, Mar 19, 2012 at 7:52 AM, Antidot SAS <[email protected]> wrote:
>
>> HI,
>>
>> I had exactly the same issue last week when I wanted to create a vhost 
>> for the puppet dashboard, I finally wasn't able to resolve the issue. And 
>> if you change the directive in '+Indexes', the ruby code is not correctly 
>> executed.
>>
>>
>> Any help is alos appareached.
>>
>> Regards,
>> JM
>>
>>
>> On Mon, Mar 19, 2012 at 1:34 PM, theirpuppet <[email protected]>wrote:
>>
>>> Thanks, however this still doesn't work.
>>>
>>> From error log:
>>> [Mon Mar 19 12:29:00 2012] [error] [client X.X.X.X] Directory index 
>>> forbidden by Options directive: /usr/share/puppet-dashboard/public/
>>>
>>> And the current apache configuration:
>>>
>>> root:~# cat /etc/apache2/sites-enabled/010-dashboard.conf 
>>> # UPDATE THESE PATHS TO SUIT YOUR ENVIRONMENT
>>> LoadModule passenger_module 
>>> /var/lib/gems/1.8/gems/passenger-2.2.11/ext/apache2/mod_passenger.so
>>> #PassengerRoot /var/lib/gems/1.8/gems/passenger-2.2.11
>>> PassengerRoot /usr/lib/phusion_passenger
>>> PassengerRuby /usr/bin/ruby
>>>
>>> # you may want to tune these settings
>>> PassengerHighPerformance on
>>> PassengerMaxPoolSize 12
>>> PassengerPoolIdleTime 1500
>>> # PassengerMaxRequests 1000
>>> PassengerStatThrottleRate 120
>>> RailsAutoDetect On
>>>
>>> <VirtualHost *:3000>
>>>         ServerName X.X.X
>>>                 ServerAlias X.X.X.X
>>>         DocumentRoot /usr/share/puppet-dashboard/public/
>>>                 RailsBaseURI /
>>>                 SetEnv Rails_ENV production
>>>                 PassengerEnabled on
>>>         <Directory /usr/share/puppet-dashboard/public/>
>>>                 Options -MultiViews -Indexes FollowSymLinks
>>>                 Order allow,deny
>>>                 allow from all
>>>         </Directory>
>>>   #ErrorLog /var/log/apache2/dashboard.example.com_error.log
>>>   LogLevel warn
>>>   #CustomLog /var/log/apache2/dashboard.example.com_access.log combined
>>>   ServerSignature On
>>> </VirtualHost>
>>>
>>>
>>>  -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Puppet Users" group.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msg/puppet-users/-/fgfDMT0_1xMJ.
>>>
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to 
>>> [email protected].
>>> For more options, visit this group at 
>>> http://groups.google.com/group/puppet-users?hl=en.
>>>
>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Puppet Users" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to 
>> [email protected].
>> For more options, visit this group at 
>> http://groups.google.com/group/puppet-users?hl=en.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/M19hCYSYGOcJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to