From ab9ddd68ee16468bf695bcbee3855ef4390688c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Vachon?= Date: Mon, 20 Apr 2015 14:28:51 -0400 Subject: [PATCH] Reverse proxy for surveil API --- Makefile | 4 ++-- container/000-default.conf | 6 +++--- container/ports.conf | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index e6998ae..b0a39aa 100644 --- a/Makefile +++ b/Makefile @@ -9,10 +9,10 @@ rebuild: sudo docker build --no-cache -t adg-fe . 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: - 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: sudo docker kill adg-fe diff --git a/container/000-default.conf b/container/000-default.conf index 9078bc7..584e32a 100644 --- a/container/000-default.conf +++ b/container/000-default.conf @@ -1,4 +1,4 @@ - + ProxyPreserveHost On # Servers to proxy the connection, or; @@ -10,7 +10,7 @@ ProxyPass /app http://localhost:8000/app ProxyPassReverse /app http://localhost:8000/app - ProxyPass / http://demo.kaji-project.org/ - ProxyPassReverse / http://demo.kaji-project.org/ + ProxyPass / http://surveil:8080/ + ProxyPassReverse / http://surveil:8080/ diff --git a/container/ports.conf b/container/ports.conf index 03d5dd2..d1738bd 100644 --- a/container/ports.conf +++ b/container/ports.conf @@ -2,7 +2,7 @@ # have to change the VirtualHost statement in # /etc/apache2/sites-enabled/000-default.conf -Listen 8080 +Listen 8888 Listen 443