# {% if ansible_distribution == "RedHat" %} # ErrorLog /var/log/httpd/notls.log # CustomLog /var/log/httpd/notls.log detailed {% else %} # ErrorLog ${APACHE_LOG_DIR}/notls.log # CustomLog ${APACHE_LOG_DIR}/notls.log detailed {% endif %} # RewriteEngine On # RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge/ # RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [R,L] # # # SSLEngine on # SSLCertificateFile /etc/ssl/i.hwstudio.hu/fullchain.pem # SSLCertificateKeyFile /etc/ssl/i.hwstudio.hu/privkey.pem # #ServerName # #Header always set Strict-Transport-Security "max-age=31536000;" DocumentRoot /var/www/def/public {% if ansible_distribution == "RedHat" %} ErrorLog /var/log/httpd/error.log CustomLog /var/log/httpd/access.log detailed {% else %} ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log detailed {% endif %} Options -Indexes +FollowSymLinks +MultiViews AllowOverride All Require all granted {% if ansible_distribution == "RedHat" %} SetHandler "proxy:unix:/var/opt/remi/php{{ phpver }}/run/php-fpm/www.sock|fcgi://localhost" {% else %} SetHandler "proxy:unix:/run/php/php{{ phpver }}-fpm.sock|fcgi://localhost" {% endif %} # vim: set tabstop=4 shiftwidth=4 expandtab smarttab: