Commit fee40d38 authored by Jerome Chauveau's avatar Jerome Chauveau
Browse files

maj doc production/déploiement/Apache

parent 0b09421a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -10,7 +10,7 @@
## Commandes

* `git clone -b dev https://git.unicaen.fr/pdn-certic/MaX.git` Récupération du code source
* `cd tools && ./max.sh --init` Initialisation de MaX, installation des dépendances
* `cd tools && ./max.sh -i` Initialisation de MaX, installation des dépendances
* `cd </path/to/basex>/webapp`
* `sudo ln -s /path/to/max` création d'un lien symbolique pointant vers le dossier d'installation de MaX
* `cd </path/to/basex>/bin`
+32 −0
Original line number Diff line number Diff line
# Mise en production

Pour une instance MaX déployée sur http://localhost:1234/

## Base URI

Modifier dans le fichier de configuration le base URI correspondant à l'URL de mise en production.
Par exemple, pour un MaX accessible à https://www.unicaen.fr/max-demo :

```
 <baseURI>/max-demo/</baseURI>
```

## Configuration Apache
Sur le serveur de production, ajouter les règles de reverse-proxy permettant de joindre votre instance de MaX disponible 
localement.

Par exemple, pour un MaX actif sur à http://localhost:1234 :

```
    ProxyPass /max-demo/demo_lorem/ http://127.0.0.1:1234/demo_lorem/
    ProxyPassReverse /max-demo/demo_lorem/ http://127.0.0.1:1234/demo_lorem/

    ProxyPass /max-demo/plugins/ http://127.0.0.1:1234/plugins/
    ProxyPassReverse /max-demo/plugins/ http://127.0.0.1:1234/plugins/

    ProxyPass /max-demo/core/ http://127.0.0.1:1234/core/
    ProxyPassReverse /max-demo/core/ http://127.0.0.1:1234/core/
```

une seule règle ```/max-demo/``` vers ```http://127.0.0.1:1234/``` rendrait l'application d'administration BaseX accessible depuis l'extérieur
à l'adresse https://www.unicaen.fr/max-demo/dba/.
 No newline at end of file
+1 −0
Original line number Diff line number Diff line
@@ -13,5 +13,6 @@ nav:
    - Pages statiques : static_pages.md
    - Métadonnées : metadata.md
    - Plugins : plugins.md
    - Mise en production : production.md
    - Docker : docker.md
theme: readthedocs