diff --git a/distros/debian/apache.conf b/distros/debian/apache.conf
index d0718d61b..cb4436be9 100644
--- a/distros/debian/apache.conf
+++ b/distros/debian/apache.conf
@@ -2,7 +2,7 @@ Alias /zm /usr/share/zoneminder/www
- Options +ExecCGI
+ Options -Indexes +ExecCGI
AllowOverride All
AddHandler fcgid-script .php
FCGIWrapper /usr/bin/php5-cgi
@@ -12,7 +12,7 @@ Alias /zm /usr/share/zoneminder/www
- Options Indexes FollowSymLinks
+ Options -Indexes FollowSymLinks
DirectoryIndex index.php
diff --git a/distros/ubuntu1204/conf/apache2/zoneminder.conf b/distros/ubuntu1204/conf/apache2/zoneminder.conf
index fa596d5ab..0dc312769 100644
--- a/distros/ubuntu1204/conf/apache2/zoneminder.conf
+++ b/distros/ubuntu1204/conf/apache2/zoneminder.conf
@@ -9,7 +9,7 @@ ScriptAlias /zm/cgi-bin "/usr/lib/zoneminder/cgi-bin"
Alias /zm /usr/share/zoneminder/www
php_flag register_globals off
- Options Indexes FollowSymLinks
+ Options -Indexes +FollowSymLinks
DirectoryIndex index.php
diff --git a/distros/ubuntu1504_cmake_split_packages/apache.conf b/distros/ubuntu1504_cmake_split_packages/apache.conf
index 6f2f30fd9..292581e78 100644
--- a/distros/ubuntu1504_cmake_split_packages/apache.conf
+++ b/distros/ubuntu1504_cmake_split_packages/apache.conf
@@ -1,8 +1,19 @@
-Alias /zm /usr/share/zoneminder/www
+# Remember to enable cgi mod (i.e. "a2enmod cgi").
+ScriptAlias /zm/cgi-bin "/usr/lib/zoneminder/cgi-bin"
+
+ Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
+ AllowOverride All
+ Require all granted
+
+Alias /zm /usr/share/zoneminder/www
- Options Indexes FollowSymLinks
+ Options -Indexes +ollowSymLinks
DirectoryIndex index.php
+
+
+ AllowOverride All
+
diff --git a/distros/ubuntu1604/conf/apache2/zoneminder.conf b/distros/ubuntu1604/conf/apache2/zoneminder.conf
index 40fbf4d7c..292581e78 100644
--- a/distros/ubuntu1604/conf/apache2/zoneminder.conf
+++ b/distros/ubuntu1604/conf/apache2/zoneminder.conf
@@ -8,7 +8,7 @@ ScriptAlias /zm/cgi-bin "/usr/lib/zoneminder/cgi-bin"
Alias /zm /usr/share/zoneminder/www
- Options Indexes FollowSymLinks
+ Options -Indexes +ollowSymLinks
DirectoryIndex index.php
diff --git a/misc/apache.conf.in b/misc/apache.conf.in
index 1ea6ed7c1..5ad45338b 100644
--- a/misc/apache.conf.in
+++ b/misc/apache.conf.in
@@ -10,7 +10,7 @@
DocumentRoot "@WEB_PREFIX@"
- Options FollowSymLinks
+ Options -Indexes +FollowSymLinks
AllowOverride All