Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
You've mentioned that this server is accessed through a public URL, and that you VPN in at times. How was this server set up, and is it hosted at your company or somewhere like Amazon or Linode? If someone else provided the Ubuntu base OS, they might have made changes you were not aware of that are causing this.
ubuntu@nagios-2015:/usr/local/nagios/etc$ more apache2.conf
<VirtualHost *:80>
ServerName ip-10-0-10-149.website.net
#ScriptAlias /nagios3/cgi-bin /usr/lib/cgi-bin/nagios3
ScriptAlias /cgi-bin/nagios /usr/lib/cgi-bin/nagios
AddHandler cgi-script .cgi
# Where the stylesheets (config files) reside
Alias /nagios/etc/stylesheets /usr/local/nagios/etc/stylesheets
# Where the HTML pages live
Alias /nagios3 /usr/share/nagios3/htdocs
<DirectoryMatch (/usr/share/nagios3/htdocs|/usr/lib/cgi-bin/nagios| /usr/local/nagios/etc/stylesheets)>
Options FollowSymLinks
DirectoryIndex index.php index.html
AllowOverride AuthConfig
Order Allow,Deny
Allow From All
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
# nagios 1.x:
#AuthUserFile /etc/nagios/htpasswd.users
require valid-user
</DirectoryMatch>
# 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
# XXX This is not tested for nagios 2.x use at your own peril
#ScriptAlias /nagios3/side.html /usr/lib/cgi-bin/nagios3/grouplist.cgi
# nagios 1.x:
#ScriptAlias /nagios/side.html /usr/lib/cgi-bin/nagios3/grouplist.cgi
</VirtualHost>
Last edited by sinkak on Mon Nov 16, 2015 1:43 pm, edited 1 time in total.