Skip to content

Commit

Permalink
Merge pull request #1697 from connortechnology/apache_indexes
Browse files Browse the repository at this point in the history
Apache indexes
  • Loading branch information
Andrew Bauer committed Nov 22, 2016
2 parents c5bee3c + aa0a4d1 commit 71898df
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 +FollowSymLinks
<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

2 comments on commit 71898df

@alexoalexo
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

distros/ubuntu1504_cmake_split_packages/apache.conf there is typo:

  • Options -Indexes +ollowSymLinks (No F?)

@SteveGilvarry
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, not sure we are using that folder for any active packages, it was a experiment in splitting packages into component parts. Anyway I fixed and created a PR #1773

Please sign in to comment.