Skip to content

Commit

Permalink
Disabled Directory Indexing by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivomarino committed Nov 30, 2016
1 parent 4377745 commit 68b9e2f
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@
ServerAdmin [email protected]
DocumentRoot /var/www/html

<Directory /var/www/html/>
Options FollowSymLinks
AllowOverride All
# Apache 2.4 only syntax, see: http://httpd.apache.org/docs/2.4/upgrading.html
# Require all granted
Order allow,deny
Allow from all
</Directory>

# Apache2 server-stats on http://localhost:8080/st
<Location /server-status>
SetHandler server-status
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
DocumentRoot /var/www/vhosts/{{ item.key }}/public

<Directory /var/www/vhosts/{{ item.key }}/>
Options Indexes FollowSymLinks
Options FollowSymLinks
AllowOverride All
# Apache 2.4 only syntax, see: http://httpd.apache.org/docs/2.4/upgrading.html
# Require all granted
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

ServerName {{ item.value.servername }}
{% if item.value.serveralias.0 is defined %}
{% for item in item.value.serveralias %}
ServerAlias {{ item }}
{% for item in item.value.serveralias %}
ServerAlias {{ item }}
{% endfor %}
{% endif %}

Expand All @@ -16,7 +16,7 @@
DocumentRoot /var/www/vhosts/{{ item.key }}/web

<Directory /var/www/vhosts/{{ item.key }}/>
Options Indexes FollowSymLinks
Options FollowSymLinks
AllowOverride All
# Apache 2.4 only syntax, see: http://httpd.apache.org/docs/2.4/upgrading.html
# Require all granted
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

ServerName {{ item.value.servername }}
{% if item.value.serveralias.0 is defined %}
{% for item in item.value.serveralias %}
ServerAlias {{ item }}
{% for item in item.value.serveralias %}
ServerAlias {{ item }}
{% endfor %}
{% endif %}

Expand All @@ -16,7 +16,7 @@
DocumentRoot /var/www/vhosts/{{ item.key }}/current/public

<Directory /var/www/vhosts/{{ item.key }}/>
Options Indexes FollowSymLinks
Options FollowSymLinks
AllowOverride All
# Apache 2.4 only syntax, see: http://httpd.apache.org/docs/2.4/upgrading.html
# Require all granted
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

ServerName {{ item.value.servername }}
{% if item.value.serveralias.0 is defined %}
{% for item in item.value.serveralias %}
ServerAlias {{ item }}
{% for item in item.value.serveralias %}
ServerAlias {{ item }}
{% endfor %}
{% endif %}

Expand All @@ -16,7 +16,7 @@
DocumentRoot /var/www/vhosts/{{ item.key }}/current/web

<Directory /var/www/vhosts/{{ item.key }}/>
Options Indexes FollowSymLinks
Options FollowSymLinks
AllowOverride All
# Apache 2.4 only syntax, see: http://httpd.apache.org/docs/2.4/upgrading.html
# Require all granted
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

ServerName {{ item.value.servername }}
{% if item.value.serveralias.0 is defined %}
{% for item in item.value.serveralias %}
ServerAlias {{ item }}
{% for item in item.value.serveralias %}
ServerAlias {{ item }}
{% endfor %}
{% endif %}

Expand All @@ -16,7 +16,7 @@
DocumentRoot /var/www/vhosts/{{ item.key }}/current/web

<Directory /var/www/vhosts/{{ item.key }}/>
Options Indexes FollowSymLinks
Options FollowSymLinks
AllowOverride All
# Apache 2.4 only syntax, see: http://httpd.apache.org/docs/2.4/upgrading.html
# Require all granted
Expand Down

0 comments on commit 68b9e2f

Please sign in to comment.