Browse Source

FreeBSD: global DocumentRoot

master
Alexander Weidinger 8 years ago
parent
commit
5d27226001
2 changed files with 6 additions and 2 deletions
  1. +4
    -2
      apache/files/FreeBSD/apache-2.4.config.jinja
  2. +2
    -0
      apache/map.jinja

+ 4
- 2
apache/files/FreeBSD/apache-2.4.config.jinja View File

@@ -230,13 +230,14 @@ ServerAdmin root@localhost
# below.
#

{% if apache.global_document_root is defined and apache.global_document_root|length > 0 %}
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot "/usr/local/www/apache24/data"
<Directory "/usr/local/www/apache24/data">
DocumentRoot "{{ apache.global_document_root }}"
<Directory "{{ apache.global_document_root }}">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
@@ -263,6 +264,7 @@ DocumentRoot "/usr/local/www/apache24/data"
#
Require all granted
</Directory>
{% endif %}

#
# DirectoryIndex: sets the file that Apache will serve if a directory

+ 2
- 0
apache/map.jinja View File

@@ -90,6 +90,8 @@
'vhostdir': '/usr/local/etc/apache22/Includes',
'confdir': '/usr/local/etc/apache22/Includes',
'modulesdir': '/usr/local/etc/apache22/modules.d',
'global_document_root': '/usr/local/www/apache22/data',

'confext': '',
'default_site': 'default',
'default_site_ssl': 'default-ssl',

Loading…
Cancel
Save