Hello everyone,
I’ve been trying to install Bahmni Lite via docker as documented on the “Getting Started Quickly with Bahmni on Docker” section, alongside an already installed nginx serving as a reverse proxy for other apps, on an ubuntu VPS.
Therefore, I were using the docker-compose.yml found in github Bahmni/bahmni-docker
. It seems that bahmni has its own proxy listening on port 80 and 443, and after exploring the architecture documentation, I saw it is based on apache.
Since my host nginx service is already using those ports, I changed bahmni proxy’s ports to 7080 and 7443 in order to avoid ports conflicts. The changes I have done from the default configs are given in the embedded screenshot below (because they have localhost links and I couldn’t add more than 2 links as a new member).
Then, I added a server block in my nginx config.
/etc/nginx/sites-available/test
content : /etc/nginx/sites-available/test - Pastebin.com
Restarted nginx.
Then I ran run-bahmni.sh
The containers are run successfully.
docker ps
output: docker ps - Pastebin.com
However, when I try to access test.mydomain.com
on the browser I get 302 Found
as a Response Header Status. It says “The page isn’t redirecting properly” on Firefox, or “Too many redirections…” on chrome .
I expected that nginx will receive the requests and forward them to bahmni’s proxy.
Does someone know where in the configuration did I do wrong? Or any solutions to make bahmni work together with nginx ?
Thank you in advance.