This may be an issue of my understanding but I have the Vagrantfile directing port 8082 to port 443 as shown below, but when using the a number of admin functions eg maintenance/Advance Settings the confirmation screen appears to drop the https and replace with http: causing the following error.
As yet I have not created an ssl certificate but have asked Mozilla to carry on regardless.
400 Bad Request
Bad Request
Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.
By the way, Mozilla is not an officially supported browser and there a few places where it doesn’t work. I recommend using Chrome or Chromium in production. See System Requirements#Devices Supported by Bahmni
Sorry for the slow response - just emerging from a 2 day power cut.
I did as you suggested but I fear there is little in the way of new information. As I said the problem is not a 400 but a call using the http:// prefix with an ssl port number.
It should be possible to configure an HTTPS redirect in the Apache configuration. See https://wiki.apache.org/httpd/RedirectSSL (Disclaimer: I havn’t done this by myself yet and I don’t have time to dig it.)
Maybe the problem is that the UI just displays the wrong link. Can you please describe the detailed steps you did (like to a four-year-old) so that it would be possible to figure out the exact location in the source code.
Off-toppic remark: I am not sure if it’s a good idea to use the Virtual Box for a production deployment. I have raised a question about this here: https://talk.openmrs.org/t/using-the-bahmni-vagrant-box-in-production Maybe this problem would not exist if you use a dedicated CentOS server.
The problem seems to occur in large parts of the openmrs/admin area when completing an action.
As an example go to manage locations, choose one, do nothing to it an then save. The error occurs following the save when it is trying to repaint the list ok known locations.
On production use of Vagrant Box I have some fears, but I am operating a very low IT resource situation and I hope to be able to leave the box as an appliance with minimal intervention with just Windows knowledge in the post implementation team.
I will let you know how it works out.
For now still can’t figure why links are sometimes not https:??