Skip to content

Commit

Permalink
Rremove Index from options to prevent directory listings
Browse files Browse the repository at this point in the history
  • Loading branch information
connortechnology committed Nov 8, 2016
1 parent 21f38f8 commit 6361f14
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion distros/debian/apache.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Alias /zm /usr/share/zoneminder/www

<Directory /usr/share/zoneminder/www>
Options Indexes FollowSymLinks
Options -Indexes +FollowSymLinks
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>
Expand Down
2 changes: 1 addition & 1 deletion distros/ubuntu1204/conf/apache2/zoneminder.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ScriptAlias /zm/cgi-bin "/usr/lib/zoneminder/cgi-bin"
Alias /zm /usr/share/zoneminder/www
<Directory /usr/share/zoneminder/www>
php_flag register_globals off
Options Indexes FollowSymLinks
Options -Indexes +FollowSymLinks
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>
Expand Down
15 changes: 13 additions & 2 deletions distros/ubuntu1504_cmake_split_packages/apache.conf
Original file line number Diff line number Diff line change
@@ -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"
<Directory "/usr/lib/zoneminder/cgi-bin">
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AllowOverride All
Require all granted
</Directory>

Alias /zm /usr/share/zoneminder/www
<Directory /usr/share/zoneminder/www>
Options Indexes FollowSymLinks
Options -Indexes +ollowSymLinks
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>
</Directory>

<Directory /usr/share/zoneminder/www/api>
AllowOverride All
</Directory>
2 changes: 1 addition & 1 deletion distros/ubuntu1604/conf/apache2/zoneminder.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ScriptAlias /zm/cgi-bin "/usr/lib/zoneminder/cgi-bin"

Alias /zm /usr/share/zoneminder/www
<Directory /usr/share/zoneminder/www>
Options Indexes FollowSymLinks
Options -Indexes +ollowSymLinks
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>
Expand Down
2 changes: 1 addition & 1 deletion misc/apache.conf.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

DocumentRoot "@WEB_PREFIX@"
<Directory "@WEB_PREFIX@">
Options FollowSymLinks
Options -Indexes +FollowSymLinks
AllowOverride All
</Directory>

Expand Down

0 comments on commit 6361f14

Please sign in to comment.