71 lines
1.7 KiB
Django/Jinja
71 lines
1.7 KiB
Django/Jinja
<VirtualHost *:80 *:443>
|
|
|
|
# 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
|
|
<Directory /home/vagrant/www/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:{{ puma_port }}/
|
|
ProxyPassReverse / http://127.0.0.1:{{ puma_port }}/
|
|
|
|
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>
|