chexpire-ansible/roles/apache-vhost/files/chexpire.conf
2019-09-09 23:24:54 +02:00

71 lines
1.7 KiB
Plaintext

<VirtualHost *:80 *:443>
# FQDN principal
# ServerName chexpire.evolix.org
#ServerAlias chexpire.evolix.org
# Repertoire principal
DocumentRoot /home/vagrant/www/current/public
# Include /etc/apache2/ssl/chexpire.conf
# Propriete du repertoire
<Directory /home/vagrant/www/current/public/>
#Options +Indexes +SymLinksIfOwnerMatch
Options +SymLinksIfOwnerMatch
AllowOverride AuthConfig Limit FileInfo
Require all granted
</Directory>
<IfModule mod_proxy_http.c>
<Location /assets>
ProxyPass !
</Location>
<Location /system>
ProxyPass !
</Location>
<Location /packs>
ProxyPass !
</Location>
<Location /.well-known>
ProxyPass !
</Location>
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:3000/
ProxyPassReverse / http://127.0.0.1:3000/
RequestHeader set X-Forwarded-Proto https
<Proxy *>
Allow from all
</Proxy>
</IfModule>
# user - group (thanks to sesse@debian.org)
AssignUserID vagrant vagrant
# LOG
CustomLog /var/log/apache2/access.log vhost_combined
CustomLog /home/vagrant/log/access.log combined
ErrorLog /home/vagrant/log/error.log
# AWSTATS
# SetEnv AWSTATS_FORCE_CONFIG chexpire
# REWRITE
# UseCanonicalName On
# RewriteEngine On
#
# RewriteCond %{HTTPS} !=on
# RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [L,R=permanent]
#
# RewriteCond %{HTTP_HOST} !^chexpire.evolix.org$
# RewriteRule ^/(.*) http://%{SERVER_NAME}/$1 [L,R]
# no PHP
php_admin_flag engine off
AddType text/html .html
</VirtualHost>