what is the connection between /var/www/bahmniapps and /opt/bahmni-web/etc/bahmniapps?
/var/www/bahmniapps - is a directory under apache. Apache config specifies that this is where bahmni frontend apps are deployed.
/opt/bahmni-web/etc/bahmniapps - is the actual directory where the frontend code resides. If you run
ls -al /var/www/
you will notice that /var/www/bahmniapps - is nothing but a symlink to /opt/bahmni-web/etc/bahmniapps