Browse Source

Added configurable variables, Fixed bug if vhostdir is something different than default value

tags/v0.37.4
Alexander Behling 8 years ago
parent
commit
3232866cc2
1 changed files with 10 additions and 6 deletions
  1. +10
    -6
      apache/files/RedHat/apache-2.4.config.jinja

+ 10
- 6
apache/files/RedHat/apache-2.4.config.jinja View File

{% from "apache/map.jinja" import apache with context %}
# #
# This is the main Apache HTTP server configuration file. It contains the # This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions. # configuration directives that give the server its instructions.
# documents. By default, all requests are taken from this directory, but # documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations. # symbolic links and aliases may be used to point to other locations.
# #
DocumentRoot "/var/www/html"
DocumentRoot "{{ apache.wwwdir }}"


# #
# Relax access to content within /var/www. # Relax access to content within /var/www.
</Directory> </Directory>


# Further relax access to the default document root: # Further relax access to the default document root:
<Directory "/var/www/html">
<Directory "{{ apache.wwwdir }}">
# #
# Possible values for the Options directive are "None", "All", # Possible values for the Options directive are "None", "All",
# or any combination of: # or any combination of:
# logged here. If you *do* define an error logfile for a <VirtualHost> # logged here. If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here. # container, that host's errors will be logged there and not here.
# #
ErrorLog "logs/error_log"
ErrorLog "{{ apache.logdir }}/error_log"


# #
# LogLevel: Control the number of messages logged to the error_log. # LogLevel: Control the number of messages logged to the error_log.
# If you prefer a logfile with access, agent, and referer information # If you prefer a logfile with access, agent, and referer information
# (Combined Logfile Format) you can use the following directive. # (Combined Logfile Format) you can use the following directive.
# #
CustomLog "logs/access_log" combined
CustomLog "{{ apache.logdir }}/access_log" combined
</IfModule> </IfModule>


<IfModule alias_module> <IfModule alias_module>
# Supplemental configuration # Supplemental configuration
# #
# Load config files in the "/etc/httpd/conf.d" directory, if any. # Load config files in the "/etc/httpd/conf.d" directory, if any.
IncludeOptional conf.d/*.conf
IncludeOptional vhosts.d/*.conf
IncludeOptional {{ apache.confdir }}/*.conf
{% if apache.vhostdir != apache.confdir %}
IncludeOptional {{ apache.vhostdir }}/*.conf
{% endif %}


Loading…
Cancel
Save