|
|
|
|
|
|
|
|
|
|
|
{% 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 %} |
|
|
|
|
|
|