Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Puppet Dashboard - Directory Index Forbidden

I also have issue on launching the Puppet Dashboard UI, Below is my config file. can anyone help me on this issue please.

Error I am getting :

[Thu Aug 20 05:25:09 2015] [error] [client 192.168.XXX.XXX] Directory index forbidden by Options directive: /usr/share/puppet-dashboard/public/

Below is my VirtualHost file.

# 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 /usr/lib/ruby/gems/1.8/gems/passenger-5.0.15
PassengerRuby /usr/bin/ruby

# you may want to tune these settings
PassengerHighPerformance on
PassengerMaxPoolSize 12
PassengerPoolIdleTime 1500
# PassengerMaxRequests 1000
PassengerStatThrottleRate 120
#RailsAutoDetect On
Listen 3000

<VirtualHost *:3000>
        ServerName puppetma.domain.net
        ServerAlias puppetma
        DocumentRoot /usr/share/puppet-dashboard/public/
<Directory /usr/share/puppet-dashboard/public/>
                Options None
                Order allow,deny
                allow from all
        </Directory>
  ErrorLog /var/log/httpd/puppet-dashboard_error.log
  LogLevel warn
  CustomLog /var/log/httpd/puppet-dashboard_access.log combined
  ServerSignature On

I could see my DNS is absolutely working fine, I have also ensured stopping my host level firewall and selinux.

Thanks

EDIT

[admin@$$$]$ pwd
/usr/share/puppet-dashboard/public
drwxr-xr-x  5 puppet-dashboard puppet-dashboard 4.0K Apr  3 17:46 .
drwxr-xr-x 17 puppet-dashboard puppet-dashboard 4.0K Mar 29 11:39 ..
-rwxr-xr-x  1 puppet-dashboard puppet-dashboard 1006 Mar 21  2013 404.html
-rwxr-xr-x  1 puppet-dashboard puppet-dashboard  989 Mar 21  2013 422.html
-rwxr-xr-x  1 puppet-dashboard puppet-dashboard 1.2K Mar 21  2013 500.html
drwxr-xr-x  3 puppet-dashboard puppet-dashboard 4.0K Mar 29 11:39 images
drwxr-xr-x  2 puppet-dashboard puppet-dashboard 4.0K Mar 29 11:39 javascripts
-rwxr-xr-x  1 admin            admin             18K Apr  3 17:46 puppet_dashboard.sql
-rwxr-xr-x  1 puppet-dashboard puppet-dashboard   26 Mar 30 15:42 robots.txt
drwxr-xr-x  4 puppet-dashboard puppet-dashboard 4.0K Mar 29 11:39 stylesheets

[admin@$$$]$ pwd
/usr/share/puppet-dashboard
drwxr-xr-x   17 puppet-dashboard puppet-dashboard 4.0K Mar 29 11:39 .
drwxr-xr-x. 127 root             root             4.0K Apr  3 16:55 ..
drwxr-xr-x    7 puppet-dashboard puppet-dashboard 4.0K Mar 29 11:39 app
drwxr-xr-x    2 puppet-dashboard puppet-dashboard 4.0K Mar 29 11:39 bin
drwxr-xr-x    2 puppet-dashboard puppet-dashboard 4.0K Mar 21  2013 certs
drwxr-xr-x    5 puppet-dashboard puppet-dashboard 4.0K Mar 29 11:59 config
drwxr-xr-x    3 puppet-dashboard puppet-dashboard 4.0K Mar 29 13:00 db
drwxr-xr-x    2 puppet-dashboard puppet-dashboard 4.0K Mar 29 11:39 examples
drwxr-xr-x    4 puppet-dashboard puppet-dashboard 4.0K Mar 29 11:39 ext
drwxr-xr-x    4 puppet-dashboard puppet-dashboard 4.0K Mar 29 11:39 lib
drwxr-xr-x    2 puppet-dashboard puppet-dashboard 4.0K Mar 31 03:24 log
drwxr-xr-x    5 puppet-dashboard puppet-dashboard 4.0K Apr  3 17:46 public
-rwxrwxrwx    1 puppet-dashboard puppet-dashboard 1.7K Mar 21  2013 Rakefile
drwxr-xr-x    3 puppet-dashboard puppet-dashboard 4.0K Mar 29 11:39 script
drwxr-xr-x   10 puppet-dashboard puppet-dashboard 4.0K Mar 29 11:39 spec
drwxr-xr-x    2 puppet-dashboard puppet-dashboard 4.0K Mar 21  2013 spool
drwxr-xr-x    2 puppet-dashboard puppet-dashboard 4.0K Mar 21  2013 tmp
drwxr-xr-x    5 puppet-dashboard puppet-dashboard 4.0K Mar 29 11:39 vendor
-rw-r--r--    1 puppet-dashboard puppet-dashboard    7 Mar 21  2013 VERSION
like image 501
Kiran Sysadm Avatar asked Aug 20 '15 21:08

Kiran Sysadm


1 Answers

Maybe this will help?

1) In the /etc/httpd/conf.d/welcome.conf change the:

Options -Indexes to Options Indexes (You may want to comment out the lines completely - depends what exactly you need).

2) Second thing maybe you just need to adjust the +x (execute) rights for your /usr/share/puppet-dashboard/public/ directory.

Try running chmod 777 /usr/share/puppet-dashboard/public/ which will give all to users, group, world. Please don't forget to adjust it correctly afterwards you are finished. If you want to run the chmod recursively add -R option.

like image 193
tukan Avatar answered Oct 03 '22 19:10

tukan