diff --git a/debian/apache.conf b/debian/apache.conf
index 8d21c711e02bbb1105e87df2b972e6f41ce3907a..16e5bcb63a03427a6b99b3c4d446758a3719d743 100644 (file)
--- a/debian/apache.conf
+++ b/debian/apache.conf
-<Location /nagios3/nagvis>
+# -- new style
+Alias /nagvis /usr/share/nagvis/htdocs
+
+# -- backward compatibility
+Alias /nagios3/nagvis /usr/share/nagvis/htdocs
+
+# -- use basic authentification from nagios3 package
+# please adapt to your needs
+<Directory /usr/share/nagvis/htdocs>
+ Options FollowSymLinks
DirectoryIndex index.php
-</Location>
+ Order Allow,Deny
+ Allow From All
+
+ AuthName "NagVis Access"
+ AuthType Basic
+ AuthUserFile /etc/nagios3/htpasswd.users
+ require valid-user
+</Directory>