On Aug 27, 2008, at 6:51 AM, Matthew Macdonald-Wallace wrote: > > I have basic auth setup in the vhost as follows: > > ============== > > <VirtualHost *> > ServerAdmin [EMAIL PROTECTED] > DocumentRoot /usr/share/nagios3/htdocs > > ServerName nagios.DOMAIN > > ErrorLog /var/log/apache2/nagios.DOMAIN-error.log > CustomLog /var/log/apache2/nagios.DOMAIN-access.log > combined > > ScriptAlias /cgi-bin/nagios3 /usr/lib/cgi-bin/nagios3 > ScriptAlias /nagios3/cgi-bin /usr/lib/cgi-bin/nagios3 > > <Directory /usr/share/nagios3/htdocs > > Options FollowSymLinks > > DirectoryIndex index.html > > AllowOverride AuthConfig > Order Allow,Deny > Allow From All > > AuthName "Nagios Access" > AuthType Basic > AuthUserFile /etc/nagios3/htpasswd.users > require valid-user > </Directory> > </VirtualHost> > ============= > > When I try to access the site, I am prompted for the username and > password. I enter this information and I gain access to the Nagios > CGI > scripts, however at the top of each screen, I am presented with the > text "Logged in as ?" > > Does anyone have any ideas why this is happening?
You have not fully configured authentication. You are being prompted to log in, but only to access the left frame menu (htdocs directory). The CGI's are not in that directory so they do not see the authentication information. Since it's the CGI's that must see the authentication, nagios correctly believes you have not logged in. You must configure a <Directory...> section as above for the /usr/lib/ cgi-bin/nagios3 directory. I am presuming that path is correct based on what you've provided above. -- Marc ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
