<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /v_1.0.0/frontend
ServerName associations.leffarmor.fr
ServerAlias server www.associations.leffarmor.fr
ProxyPreserveHost On
ProxyStatus On
ProxyPass / http://ip:port/
ProxyPassReverse / http://ip:port/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Directory /home/lacsi/associations/v_1.0.0/frontend>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
Redirect permanent / https://associations.leffarmor.fr:2500/
</VirtualHost>
<VirtualHost *:443>
ServerAdmin webmaster@localhost
DocumentRoot /home/lacsi/associations/v_1.0.0/frontend
ServerName associations.leffarmor.fr
ServerAlias server www.associations.leffarmor.fr
ProxyPreserveHost On
ProxyStatus On
ProxyPass / http://ip:port/
ProxyPassReverse / http://ip:port/
<Location /api>
ProxyPass http://ip:port/api
ProxyPassReverse http://ip:port/api
</Location>
<Location /datas>
ProxyPass http://ip:port/datas
ProxyPassReverse http://ip:port/datas
</Location>
<Directory /home/lacsi/associations/v_1.0.0/frontend>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
SSLEngine on
SSLCertificateFile /etc/letsencrypt/live/associations.leffarmor.fr/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/associations.leffarmor.fr/privkey.pem
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
</FilesMatch>
<Directory /usr/lib/cgi-bin>
SSLOptions +StdEnvVars
</Directory>
</VirtualHost>