Nagios & Apache Configuration

Russell Adams RLAdams at Kelsey-Seybold.com
Tue Sep 2 17:52:30 CEST 2003


The next question would be how to do that with SSL. ;]

My standard http://server/nagios/ is SSL'd and requires a secure
login.

Russell

On Wed, Aug 27, 2003 at 08:51:33PM -0400, Karl DeBisschop wrote:
> On Wed, 2003-08-27 at 19:03, Subhendu Ghosh wrote:
> > Need to recompile the Nagios with new Configure paramters and install the 
> > new cgis.  The relative URL between CGIs are currently hard coded.
> 
> Unless I misunderstand the request, this is untrue. The following works
> for me with an unmodified RPM install:
> 
> ScriptAlias /nagios/cgi-bin/ /usr/lib/nagios/cgi/
> Alias /nagios/ /usr/share/nagios/
> 
> <VirtualHost nnn.nnn.nnn.nnn:80>
>   ServerName nagios.example.com
>   ServerAlias nagios
> 
>  <Directory /usr/lib/nagios/cgi/>
>     Options ExecCGI
>     order deny,allow
>     allow from aaa.bbb.ccc.ddd
>     AuthType Basic
>     AuthUserFile /site/cfg/passwd
>     AuthGroupFile /site/cfg/group
>     AuthName "user"
>     require group user
>     Satisfy Any
>   </Directory>
> 
>   <Directory /usr/share/nagios/>
>     Options None
>     order deny,allow
>     allow from aaa.bbb.ccc.ddd
>     AuthType Basic
>     AuthUserFile /site/cfg/passwd
>     AuthGroupFile /site/cfg/group
>     AuthName "user"
>     require group user
>     Satisfy Any
>   </Directory>
> 
> </VirtualHost>
> 
> 
> > There was a patch earlier from the folks at Quadrix (another Russell) to 
> > use environment info inside Apache - that patch is not in the main code 
> > base at the moment and probably won't make it given the pending rewrite of 
> > the UI.
> > 
> > -sg
> > 
> > On Wed, 27 Aug 2003, Russell Adams wrote:
> > 
> > > I'm trying to configure Apache to allow me to run Nagios on a
> > > VirtualHost. Perhaps someone has some input into this process.
> > > 
> > > I have a webserver, (ie: webserver.mydomain.com), with Nagios
> > > currently running on it at http://webserver.mydomain.com/nagios/. I've
> > > created a DNS alias for the webserver called nagios.mydomain.com, and
> > > am trying to setup a virtual host to have nagios on
> > > http://nagios.mydomain.com/.
> > > 
> > > I have been unsuccessful so far at using url rewriting to redirect
> > > queries, and not much luck with trying the direct approach.
> > > 
> > > My ultimate goal is to have Nagios available on
> > > http://webserver.mydomain.com/nagios/ and http://nagios.mydomain.com/.
> > > 
> > > Any input would be appreciated.
> > > 
> > > Russell
> > > 
> > > 
> > > -------------------------------------------------------
> > > This sf.net email is sponsored by:ThinkGeek
> > > Welcome to geek heaven.
> > > http://thinkgeek.com/sf
> > > _______________________________________________
> > > Nagios-users mailing list
> > > Nagios-users at lists.sourceforge.net
> > > 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
> > > 


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
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





More information about the Users mailing list