Page 1 of 1

tac.cgi Not Parsing

Posted: Fri Jun 09, 2017 11:04 pm
by Flash619
Greetings,

I have setup Nagios today and had some issues getting .cgi files to parse on Apache 2.4 within a FreeNAS 11-RC4 jail. Every .cgi file will parse perfectly, and the site as it appears, works flawlessly; However there is one exception, tac.cgi will not parse.

Whenever I try to access the 'Tactical Overview' page, I am prompted to download the tac.cgi instead of Apache's mod_cgi parsing it. I'm not sure why as this file exists within the same directory as all other cgi files that currently work fine.

My Apache config is right here,

Code: Select all

ScriptAlias /nagios/cgi-bin/ /usr/local/www/nagios/cgi-bin/                     
Alias /nagios/ /usr/local/www/nagios/                                           
                                                                                
<Directory /usr/local/www/nagios>                                               
Options None                                                                    
AllowOverride None                                                              
Order allow,deny                                                                
Allow from all                                                                  
AuthName "Nagios Access"                                                        
AuthType Basic                                                                  
AuthUserFile /usr/local/etc/nagios/htpasswd.users                               
Require valid-user                                                              
</Directory>                                                                    
                                                                                
<Directory /usr/local/www/nagios/cgi-bin>                                       
Options ExecCGI                                                                 
</Directory>       
Again, every .cgi file within cgi-bin works perfectly. tac.cgi is the only cgi file that does not work. :|

Re: tac.cgi Not Parsing

Posted: Mon Jun 12, 2017 11:59 am
by tmcdonald
Can you compare the permissions of the CGI files? Run ls -al *.cgi in the directory in which they reside, and post the results.