# FQDN principal ServerName chexpire.evolix.org #ServerAlias chexpire.evolix.org # Repertoire principal DocumentRoot /home/vagrant/www/public # Include /etc/apache2/ssl/chexpire.conf # Propriete du repertoire #Options +Indexes +SymLinksIfOwnerMatch Options +SymLinksIfOwnerMatch AllowOverride AuthConfig Limit FileInfo Require all granted ProxyPass ! ProxyPass ! ProxyPass ! ProxyPass ! ProxyPreserveHost On ProxyPass / http://127.0.0.1:{{ puma_port }}/ ProxyPassReverse / http://127.0.0.1:{{ puma_port }}/ RequestHeader set X-Forwarded-Proto https Allow from all # 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