JMap 7 Funafuti + : Déploiement Web sur proxy / Deploying a Web application on a proxy serve



Produit concerné / Related product

JMap Server

Versions

7 Funafuti +



Jump to English version

 

Cet article explique comment déployer une application JMap sur un serveur autre (proxy) que JMap Server.

Prérequis

  • Installation de JMap Serveur sur un serveur privé.

  • Un second serveur dans la zone démilitarisée (DMZ).

Guide étape par étape

  1. Installez Apache Tomcat sur le serveur de la DMZ.
    Note : Le dernier correctif disponible de la version 7 de Tomcat est recommandée.

  2. Dans JMap Admin, éditez les déploiements qui seront copiés sur le serveur proxy.

  3. À l'étape de précision du chemin de l'application, assurez-vous d'indiquer l'hôte et le port de l'application sur lequel le serveur de la DMZ sera accessible au public.

  4. Complétez l'assistant de déploiement d'application. 

  5. Copiez le fichier WAR correspondant à votre déploiement à partir du répertoire $JMAP_HOME$/applications/deployed vers le répertoire $TOMCAT_HOME$/webapps du serveur proxy. Si vous utilisez une version récente de JMap 7, vous pouvez télécharger le fichier WAR des déploiements à partir de la page déploiements de JMap Admin.

  6. Copiez le fichier WAR correspondant au service REST téléchargé de la page de déploiements de JMap Admin vers le répertoire $TOMCAT_HOME$/webapps du serveur proxy.
    Notes:  
    $JMAP_HOME$ signifie le répertoire d'installation de JMap. $TOMCAT_HOME$ signifie le répertoire d'installation de Tomcat que vous avez installé à la première étape.
    La version 8.5.37 de Tomcat contient un bug sur le chargement des fichiers CSS qui affecte JMapWeb, vous pouvez utiliser la version 8.5.35 disponible ici: https://archive.apache.org/dist/tomcat/tomcat-8/v8.5.35/bin/

  7. Téléchargez les fichiers services.war et reports.war (Gibraltar et +). Ces fichiers sont disponibles dans JMap Admin dans la page des déploiements en cliquant sur le bouton section. Il faut copier les fichiers sur votre serveur web dans le répertoire ex: Tomcat/webapps.
    Note : Si le répertoire $TOMCAT_HOME$/webapps/votre_application/ n'existe pas encore, mais que vous avez précédement copié le fichier WAR du déploiement, démarrez puis arrêter le service Tomcat afin de le créer.

  8. Redémarrez le service Tomcat. Votre application sera disponible à l'adresse que vous avez spécifié au moment du déploiement.

 

English version


This article explains how to deploy a web application on a web/proxy server.

Prerequisite

  • An existing JMap server accessible from the proxy server

  • A second server accessible from the Internet (AKA proxy or web server, often located in a DMZ).

Step by step guide

  1. Install Apache Tomcat on the proxy server.
    Note : The latest Tomcat version 7 is recommended.

  2. In JMap Admin, edit every application deployments to be deployed on the proxy server.

  3. In the Path step of the application deployment wizard, the "Application host" and the "Application Port" must be the public address and port from which the application will be accessible. For instance, if the application would be hosted on mycity.com on the default http port (80), this is what should be configured for two fields.

  4. Complete the application deployment wizard. 

  5. Copy the corresponding WAR file of your deployed application in your $JMAP_HOME$/applications/deployed directory to the $TOMCAT_HOME$/webapps directory of your proxy server Tomcat instance. If you are using a recent version of JMap 7, you can download the deployments WAR file from the JMap Admin deployments page.

  6. Copy the correspondent WAR file of the REST service downloaded from JMap Admin deployments page to the $TOMCAT_HOME$/webapps directory of your proxy server Tomcat instance.
    Notes:
    $JMAP_HOME$ is the root directory of your JMap server. $TOMCAT_HOME$ is the root directory of  Apache Tomcat of your proxy server.
    Tomcat version 8.5.37 contains a bug on CSS file loading that affects JMapWeb, can get version 8.5.35 here: https://archive.apache.org/dist/tomcat/tomcat-8/v8.5.35/bin/

  7. Download services.war and reports.war (Gibraltar and +) files, they are available on JMap Admin's Deployment page when clicking on the sections button. Those files need to be copied on your web server in ex:Tomcat/webapps directory.
    Note : If $TOMCAT_HOME$/webapps/your_application/ does not exist but you have copied your WAR file, restart the Tomcat service and the directory will be created.

  8. Once the files have been copied, restart your Apache Tomcat service and your application will be available at the address specified in your deployment.