Have you tried adding :
Code: Select all
Indexes
Code: Select all
<DirectoryMatch (/usr/share/nagios3/htdocs|/usr/lib/cgi-bin/nagios3|/etc/nagios3/stylesheets)>
Options FollowSymLinks Indexes
[snip]
Code: Select all
Indexes
Code: Select all
<DirectoryMatch (/usr/share/nagios3/htdocs|/usr/lib/cgi-bin/nagios3|/etc/nagios3/stylesheets)>
Options FollowSymLinks Indexes
[snip]
Code: Select all
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Code: Select all
htpasswd -c /etc/nagios3/htpasswd.users nagiosadmin
Agreed. Some of the distro packages are wonky, they do things their own way. Configuring vhosts should be a simple procedure for nagios, but the debian vhost config is a mess. Additionally, we will best be able to support your issues if you do a source-based install.kalianto wrote:It's best if you download nagios from nagios.org, extract it following the installation instruction/document.
It gives you more control than using apt-get