Something went wrong on our end
-
DESPRES Damien authored
Deleted image.png
DESPRES Damien authoredDeleted image.png
conf_apache_dev.md 879 B
intro
ceci permet de faire tourner le front en local sur /geocontrib et de faire pointer /api sur n'importe quel backend (dev, local ou autre )
configuration apache
dans la configuration apache generale (httpd.conf ou commande a2enmod ), activer les modules :
- mod_headers
- mod_proxy
- mod_ssl
- mod_proxy_http
<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/
</Location>
configuration projet vueJS
remplacer dans le fichier config.json du projet
DOMAIN":"http://localhost:8010/", par "DOMAIN":"http://localhost/",
et
"VUE_APP_DJANGO_API_BASE":"http://localhost:8010/api/", par "VUE_APP_DJANGO_API_BASE":"http://localhost/api/",