... | ... | @@ -122,7 +122,8 @@ ServerName canular.inrae.fr |
|
|
Options -Indexes -Includes -ExecCGI -FollowSymlinks
|
|
|
</Directory>
|
|
|
|
|
|
<Directory /var/www/elabftw/web>
|
|
|
<Directory /var/www/html/elabftw/web>
|
|
|
|
|
|
Require all granted
|
|
|
Options -Indexes -Includes -ExecCGI +FollowSymlinks
|
|
|
</Directory>
|
... | ... | @@ -177,18 +178,30 @@ ServerName canular.inrae.fr |
|
|
Options -Indexes -Includes -ExecCGI -FollowSymlinks
|
|
|
</Directory>
|
|
|
|
|
|
<Directory /var/www/elabftw/web>
|
|
|
<Directory /var/www/html/elabftw/web>
|
|
|
Require all granted
|
|
|
Options -Indexes -Includes -ExecCGI +FollowSymlinks
|
|
|
</Directory>
|
|
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
|
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
|
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
|
|
|
|
|
SSLCertificateFile /etc/letsencrypt/live/canular.inrae.fr/fullchain.pem
|
|
|
SSLCertificateKeyFile /etc/letsencrypt/live/canular.inrae.fr/privkey.pem
|
|
|
Include /etc/letsencrypt/options-ssl-apache.conf
|
|
|
|
|
|
SSLEngine on
|
|
|
SSLProxyEngine on
|
|
|
RewriteEngine On
|
|
|
RewriteCond %{HTTP:Authorization} ^(.*)
|
|
|
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
|
|
|
RewriteRule ^/api/v1/(.*)$ /app/controllers/ApiController.php?req=%{REQUEST_URI}&args=$args [P,L]
|
|
|
|
|
|
|
|
|
</VirtualHost>
|
|
|
</IfModule>
|
|
|
```
|
|
|
a2enmod proxy proxy_http
|
|
|
sudo service apache2 restart
|
|
|
|
|
|
test si ça fonctionne ici : http://canular.inrae.fr/elabftw
|
|
|
|
... | ... | |