Can not browse openelis outside of virtualbox after port forwarding

Hi Everyone, I have just installed Bahmni in my local machine from a downloaded vagrant box. Following are relevant version information of my environment.

  1. Bahmni vagrant box version : 0.90
  2. Host Os:Ubuntu 16.04
  3. Vagrant version: Vagrant 2.1.2
  4. Virtual box: Version 5.2.14
  5. git version 2.7.4

After running vagrant up everything went smooth and fine and I could browse every Bahmni component (EMR,Openmrs,OpenElis,Openerp) using IP:192.168.33.10 Next I want to share my installation with few other machine in my network and had done following changes in my vagrant file

#config.vm.network “private_network”, ip: “192.168.33.10”

config.vm.network :forwarded_port, guest: 8080, host: 8081

config.vm.network :forwarded_port, guest: 443, host: 8082

config.vm.network :forwarded_port, guest: 8069, host: 8069

config.vm.network “public_network”

Then after running vagrant reload I could browse Bahmni EMR, Openmrs, Openerp from other machine but could not find openElis. I am trying to find openElis in URL: http://host ip/openelis/

also tried URL: http://host ip:8081/openelis/

Can you please let me know what I am missing in my installation or in vagrant file? *I have checked and found inside the virtual box bahmni-lab service is running

Hey please how do you install Bahmni on your Ubuntu? I’m not able to install mine on centos 7 can you help me ???

@ethical I have just installed Bahmni in my local machine from a downloaded vagrant box. instructions are here : https://bahmni.atlassian.net/wiki/spaces/BAH/pages/14712841/Bahmni+Virtual+Box

@sohel are you open the begin and end port to forward information??? By default it is on port 9

check the port on which OpenELIS is running, you might even want to expose that port for someone to access internally.

I am assuming that somewhere the apache redirections you have broken. Check /etc/httpd/conf.d/bahmnilab_ssl.conf

@angshuonline thanks, I think I got the issue,

inside /etc/httpd/conf.d/bahmnilab_ssl.conf

I have found

 ProxyPass /openelis http://localhost:8052/openelis
 ProxyPassReverse /openelis http://localhost:8052/openelis

This means inside the box openelis runing on port 8052

I have just change port forwarding following way,

#config.vm.network “private_network”, ip: “192.168.33.10”

config.vm.network :forwarded_port, guest: 8052, host: 8081

config.vm.network :forwarded_port, guest: 443, host: 8082

config.vm.network :forwarded_port, guest: 8069, host: 8083

config.vm.network “public_network”

and it works. Now i can browse openelis: http://ip:8081/openelis/

Thanks for your help.

2 Likes

Happy for you

1 Like

Thank you for this link http://localhost:8052/openelis

1 Like