2020-01-22 20:44:52 +01:00
|
|
|
# By default the /@name@ Alias is enabled for all vhosts.
|
|
|
|
# To disable the /@name@ Alias, run
|
|
|
|
# a2enflag -d @name@ && rcapache2 restart
|
|
|
|
# This will make /@name@ unavailable on any vhosts.
|
|
|
|
#
|
|
|
|
# If you want to have the /@name@ Alias only on a specific
|
|
|
|
# vhost, add the Alias to the config of that vhost.
|
|
|
|
|
|
|
|
<IfDefine @name@>
|
|
|
|
<IfModule mod_alias.c>
|
|
|
|
Alias /@name@ @ap_docroot@/@name@
|
|
|
|
</IfModule>
|
|
|
|
</IfDefine>
|
|
|
|
|
2011-02-25 15:41:08 +01:00
|
|
|
<Directory @ap_docroot@/@name@>
|
2018-04-12 00:40:21 +02:00
|
|
|
|
2016-11-05 04:02:34 +01:00
|
|
|
Options FollowSymLinks
|
|
|
|
AllowOverride None
|
|
|
|
|
2020-01-22 20:44:52 +01:00
|
|
|
<IfVersion < 2.4>
|
|
|
|
Order Allow,Deny
|
|
|
|
Allow from all
|
|
|
|
</IfVersion>
|
|
|
|
|
|
|
|
<IfVersion >= 2.4>
|
|
|
|
<IfModule !mod_access_compat.c>
|
|
|
|
Require all granted
|
|
|
|
</IfModule>
|
|
|
|
<IfModule mod_access_compat.c>
|
|
|
|
Order Allow,Deny
|
|
|
|
Allow from all
|
|
|
|
</IfModule>
|
|
|
|
</IfVersion>
|
|
|
|
|
2016-11-10 15:40:40 +01:00
|
|
|
<IfModule mod_php7.c>
|
2017-03-20 23:22:05 +01:00
|
|
|
Include @ap_sysconfdir@/conf.d/@name@.inc
|
2020-11-10 09:40:14 +01:00
|
|
|
php_admin_value open_basedir "@ap_docroot@/@name@:@ap_tmpdir@:/var/lib/php7:/tmp:@docdir@/@name@:/etc/@name@:/proc/meminfo:/proc/stat"
|
2016-11-05 04:02:34 +01:00
|
|
|
</IfModule>
|
|
|
|
|
2011-02-25 15:41:08 +01:00
|
|
|
</Directory>
|
2018-04-12 00:40:21 +02:00
|
|
|
|
2011-02-25 15:41:08 +01:00
|
|
|
<Directory @ap_docroot@/@name@/libraries>
|
2016-11-05 04:02:34 +01:00
|
|
|
|
|
|
|
<IfVersion < 2.4>
|
|
|
|
Order allow,deny
|
|
|
|
Deny from all
|
|
|
|
</IfVersion>
|
|
|
|
|
|
|
|
<IfVersion >= 2.4>
|
|
|
|
<IfModule !mod_access_compat.c>
|
|
|
|
Require all denied
|
|
|
|
</IfModule>
|
|
|
|
<IfModule mod_access_compat.c>
|
|
|
|
Order deny,allow
|
|
|
|
Deny from all
|
|
|
|
</IfModule>
|
|
|
|
</IfVersion>
|
|
|
|
|
2011-02-25 15:41:08 +01:00
|
|
|
</Directory>
|
|
|
|
|
2018-04-12 00:40:21 +02:00
|
|
|
<Directory @ap_docroot@/@name@/templates>
|
|
|
|
|
|
|
|
<IfVersion < 2.4>
|
|
|
|
Order allow,deny
|
|
|
|
Deny from all
|
|
|
|
</IfVersion>
|
|
|
|
|
|
|
|
<IfVersion >= 2.4>
|
|
|
|
<IfModule !mod_access_compat.c>
|
|
|
|
Require all denied
|
|
|
|
</IfModule>
|
|
|
|
<IfModule mod_access_compat.c>
|
|
|
|
Order deny,allow
|
|
|
|
Deny from all
|
|
|
|
</IfModule>
|
|
|
|
</IfVersion>
|
|
|
|
|
|
|
|
</Directory>
|
|
|
|
|
2020-11-10 09:40:14 +01:00
|
|
|
<Directory @ap_tmpdir@>
|
2018-04-12 00:40:21 +02:00
|
|
|
|
|
|
|
<IfVersion < 2.4>
|
|
|
|
Order allow,deny
|
|
|
|
Deny from all
|
|
|
|
</IfVersion>
|
|
|
|
|
|
|
|
<IfVersion >= 2.4>
|
|
|
|
<IfModule !mod_access_compat.c>
|
|
|
|
Require all denied
|
|
|
|
</IfModule>
|
|
|
|
<IfModule mod_access_compat.c>
|
|
|
|
Order deny,allow
|
|
|
|
Deny from all
|
|
|
|
</IfModule>
|
|
|
|
</IfVersion>
|
|
|
|
|
|
|
|
</Directory>
|