Something went wrong on our end
-
Sébastien DA ROCHA authoredSébastien DA ROCHA authored
conf_apache_dev.md 1.85 KiB
Introduction
La configuration d'un serveur HTTP local permet de faire tourner le frontend en local sur "/geocontrib" et de faire pointer "/api" sur n'importe quel backend (dev, local ou autre ). La configuration est différent sous MacOSX et Linux
Configuration apache
Dans la configuration apache générale (httpd.conf ou commande a2enmod ), activer les modules :
- mod_headers
- mod_proxy
- mod_ssl
- mod_proxy_http
À ajouter dans httpd.conf (MacOSX) ou apache2.conf (Linux)
<Location /geocontrib >
ProxyPass http://localhost:8080/geocontrib
</Location>
SSLProxyEngine On
<Location /api >
ProxyPass https://geocontrib.dev.neogeo.fr/geocontrib/api
RequestHeader set Referer https://geocontrib.dev.neogeo.fr/
# Pour la 2.3.x utiliser geocontrib.recette-stable.neogeo.fr
</Location>
Pour que les changements soient pris en compte, il faut ensuite relancer le serveur apache.
Spécifique Linux (Debian/Ubuntu)
- S'il n'est pas déjà disponible, installer Apache :