LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-12-2005, 07:24 AM   #1
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 339

Rep: Reputation: 31
Nagios & cgi-bin


apt-get install nagios-mysql
I want to have all nagios files in /var/www/nagios (including the cgi files)
So i copy /usr/lib/nagios/cgi-bin/* to /var/www/nagios/*
files owner/group: www-data.www-data
permisions: 777

apache config:
Quote:
<DirectoryMatch /var/www/nagios/cgi-bin>
Options ExecCGI

AllowOverride AuthConfig
Order Allow,Deny
Allow From All

AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios/htpasswd.users
require valid-user
</DirectoryMatch>

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

# Enable this ScriptAlias if you want to enable the grouplist patch.
# See http://apan.sourceforge.net/download.html for more info
# It allows you to see a clickable list of all hostgroups in the
# left pane of the Nagios web interface
#ScriptAlias /nagios/side.html /usr/lib/cgi-bin/nagios/grouplist.cgi

# Where the HTML pages live
#Alias /nagios /usr/share/nagios/htdocs
<DirectoryMatch /var/www/nagios/>
Options FollowSymLinks

AllowOverride AuthConfig
Order Allow,Deny
Allow From All

AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios/htpasswd.users
require valid-user
</DirectoryMatch>

The problem is that when a cgi files is being executed IE/firefox opens a download box instead of executing it


any idea what i am doing wrong???
thx

Last edited by JJX; 10-12-2005 at 07:26 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot access cgi-bin directory for Nagios hywaydave23 Linux - Software 1 10-12-2005 06:16 AM
CGI to work out side of cgi-bin? crashedspine Linux - Newbie 13 09-02-2004 08:49 PM
Nagios and Check.cgi kopite2012 Linux - Newbie 1 04-08-2004 04:42 AM
Squid & cgi-bin ? .. Prob. collen Linux - General 0 04-01-2004 08:25 AM
http://www.burstnet.com/cgi-bin/ads/ad7954a.cgi/3980/RETURN-CODE rverlander LQ Suggestions & Feedback 1 06-07-2002 07:35 AM


All times are GMT -5. The time now is 08:56 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration