ServerRoot "/etc/httpd" {% for port in httpd_ports %} Listen {{ port }} http {% endfor %} Include ansible_conf.modules.d/*.conf User {{ httpd_user }} Group {{ httpd_group }} ServerAdmin root@{{ inventory_hostname }} ServerName {{ inventory_hostname }} ServerTokens Prod ProxyTimeout {{ httpd_proxy_timeout }} AllowOverride none Require all denied DocumentRoot "/var/www/html/default" AllowOverride None Require all granted DirectoryIndex index.html index.php Require all denied ErrorLog "logs/error_log" LogLevel warn LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" scheme=\"%{HTTP}e\"" combined LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" scheme=\"%{HTTP}e\"" combined_virtual LogFormat "%V %{X-Forwarded-For}i %l %{Auth-User}i %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" scheme=\"%{HTTP}e\"" combined_virtual_backend LogFormat "%h %l %u %t \"%r\" %>s %b" common LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio CustomLog "logs/access_log" {{ httpd_log_format | default('combined_virtual') }} TypesConfig /etc/mime.types AddType application/x-compress .Z AddType application/x-gzip .gz .tgz AddType text/html .shtml AddOutputFilter INCLUDES .shtml AddDefaultCharset UTF-8 MIMEMagicFile conf/magic EnableSendfile on IncludeOptional ansible_conf.d/*.conf IncludeOptional custom_conf.d/*.conf