diff --git a/templates/vhosts-2.2.conf.j2 b/templates/vhosts-2.2.conf.j2
index 3c27677..c1b17a9 100644
--- a/templates/vhosts-2.2.conf.j2
+++ b/templates/vhosts-2.2.conf.j2
@@ -14,10 +14,14 @@ DirectoryIndex index.php index.html
ServerAdmin {{ vhost.serveradmin }}
{% endif %}
- AllowOverride All
- Options -Indexes FollowSymLinks
- Order allow,deny
- Allow from all
+ {% if vhost.directory_parameters is defined %}
+ {{ vhost.directory_parameters }}
+ {% else %}
+ AllowOverride All
+ Options -Indexes FollowSymLinks
+ Order allow,deny
+ Allow from all
+ {% endif %}
{% if vhost.extra_parameters is defined %}
{{ vhost.extra_parameters }}
@@ -49,10 +53,14 @@ DirectoryIndex index.php index.html
ServerAdmin {{ vhost.serveradmin }}
{% endif %}
- AllowOverride All
- Options -Indexes FollowSymLinks
- Order allow,deny
- Allow from all
+ {% if vhost.directory_parameters is defined %}
+ {{ vhost.directory_parameters }}
+ {% else %}
+ AllowOverride All
+ Options -Indexes FollowSymLinks
+ Order allow,deny
+ Allow from all
+ {% endif %}
{% if vhost.extra_parameters is defined %}
{{ vhost.extra_parameters }}