ServerRoot "/etc/httpd" Listen 80 Include conf.modules.d/*.conf User apache Group apache ServerAdmin root@localhost ServerName {{ ansible_fqdn }} ServerTokens Prod ServerSignature Off # default deny AllowOverride none Require all denied DocumentRoot "{{ apache_public_dir }}/html" KeepAlive On # relax access to content within {{ apache_public_dir }}. AllowOverride None Require all granted # further relax access to the default document root: Options FollowSymLinks AllowOverride None Require all granted # serve index.html if a directory is requested DirectoryIndex index.html # deny .htaccess, .htpasswd Require all denied ErrorLog "logs/error_log" LogLevel warn LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined 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" combined ScriptAlias /cgi-bin/ "{{ apache_public_dir }}/cgi-bin/" AllowOverride None Options None Require all granted 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 AddOutputFilterByType DEFLATE {{ apache_gzip_types | join(" ") }} # Load config files in the "/etc/httpd/conf.d" directory, if any. IncludeOptional conf.d/*.conf