45 lines
1.5 KiB
Plaintext
45 lines
1.5 KiB
Plaintext
#<VirtualHost *:80>
|
|
{% 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]
|
|
#</VirtualHost>
|
|
#<VirtualHost *:443>
|
|
# 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;"
|
|
|
|
<VirtualHost *:80>
|
|
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 %}
|
|
<Directory /var/www/def/public>
|
|
Options -Indexes +FollowSymLinks +MultiViews
|
|
AllowOverride All
|
|
Require all granted
|
|
</Directory>
|
|
<Files "*.php">
|
|
{% 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 %}
|
|
</Files>
|
|
</VirtualHost>
|
|
|
|
# vim: set tabstop=4 shiftwidth=4 expandtab smarttab:
|