Skip to content
This repository was archived by the owner on Nov 16, 2022. It is now read-only.

Commit 325febc

Browse files
author
Michel Käser
committed
move to conf-custom to prevent override from ISPConfig; seems -Indexes is needed in HTTPd 2.4 to prevent directory listing; tested with 3.0.5.4p6
1 parent e86ab8a commit 325febc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

usr/local/ispconfig/server/conf-custom/vhost.conf.master

+3-3
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
# Custom error pages
5353
Alias /error/ /var/www/error/
5454
<Directory /var/www/error/>
55-
Options +FollowSymLinks
55+
Options -Indexes +FollowSymLinks
5656
AllowOverride None
5757
<tmpl_if name='apache_version' op='>' value='2.2' format='version'>
5858
Require all granted
@@ -77,7 +77,7 @@
7777
<FilesMatch ".+\.ph(p[345]?|t|tml)$">
7878
SetHandler None
7979
</FilesMatch>
80-
Options FollowSymLinks
80+
Options -Indexes +FollowSymLinks
8181
AllowOverride <tmpl_var name='allow_override'>
8282
Order allow,deny
8383
Allow from all
@@ -107,7 +107,7 @@
107107
<FilesMatch ".+\.ph(p[345]?|t|tml)$">
108108
SetHandler None
109109
</FilesMatch>
110-
Options +FollowSymLinks
110+
Options -Indexes +FollowSymLinks
111111
AllowOverride <tmpl_var name='allow_override'>
112112
<tmpl_if name='apache_version' op='>' value='2.2' format='version'>
113113
Require all granted

0 commit comments

Comments
 (0)