Reverse proxy for surveil API

This commit is contained in:
Frédéric Vachon 2015-04-20 14:28:51 -04:00
parent 7862fb5ae9
commit ab9ddd68ee
3 changed files with 6 additions and 6 deletions

View File

@ -9,10 +9,10 @@ rebuild:
sudo docker build --no-cache -t adg-fe . sudo docker build --no-cache -t adg-fe .
interactive: interactive:
sudo docker run -p 8080:8080 -v ${PWD}:/opt/adagios-frontend -i -t --name adg-fe adg-fe bash sudo docker run -p 8888:8888 --link surveil_surveil_1:surveil -v ${PWD}:/opt/adagios-frontend -i -t --name adg-fe adg-fe bash
daemon: daemon:
sudo docker run -p 8080:8080 -v ${PWD}:/opt/adagios-frontend -d -t --name adg-fe adg-fe sudo docker run -p 8888:8888 --link surveil_surveil_1:surveil -v ${PWD}:/opt/adagios-frontend -d -t --name adg-fe adg-fe
kill: kill:
sudo docker kill adg-fe sudo docker kill adg-fe

View File

@ -1,4 +1,4 @@
<VirtualHost *:8080> <VirtualHost *:8888>
ProxyPreserveHost On ProxyPreserveHost On
# Servers to proxy the connection, or; # Servers to proxy the connection, or;
@ -10,7 +10,7 @@
ProxyPass /app http://localhost:8000/app ProxyPass /app http://localhost:8000/app
ProxyPassReverse /app http://localhost:8000/app ProxyPassReverse /app http://localhost:8000/app
ProxyPass / http://demo.kaji-project.org/ ProxyPass / http://surveil:8080/
ProxyPassReverse / http://demo.kaji-project.org/ ProxyPassReverse / http://surveil:8080/
</VirtualHost> </VirtualHost>

View File

@ -2,7 +2,7 @@
# have to change the VirtualHost statement in # have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default.conf # /etc/apache2/sites-enabled/000-default.conf
Listen 8080 Listen 8888
<IfModule ssl_module> <IfModule ssl_module>
Listen 443 Listen 443