[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Apache 2.4 and Icinga CGI scripts download instead of executing.



Well it's always after you give up and and ask for help that you find the answer.
A browser restart resulted in it no longer trying to download the CGI files.
Also the change I made to the icinga.conf file was wrong since having 'Request all granted' means the 'Require valid-user' later wasn't working.
So now it just looks like:

  # apache configuration for icinga

  ScriptAlias /cgi-bin/icinga /usr/lib/cgi-bin/icinga

  # Where the stylesheets (config files) reside
  Alias /icinga/stylesheets /etc/icinga/stylesheets

  # Where the HTML pages live
  Alias /icinga /usr/share/icinga/htdocs

  <DirectoryMatch "^(?:/usr/share/icinga/htdocs|/usr/lib/cgi-bin/icinga|/etc/icinga/stylesheets)/">
          Options FollowSymLinks

          DirectoryIndex index.html

          AllowOverride AuthConfig
#         Order Allow,Deny
#         Allow From All

          AuthName "Icinga Access"
          AuthType Basic
          AuthUserFile /etc/icinga/htpasswd.users
          Require valid-user
  </DirectoryMatch>

Regards,

--
Jim Barber


Reply to: