While I was playing around with ee on a vagrant environment running Ubuntu 14.04 I noticed a little bug when using ee secure -port command. I changed the port to 8080 then I accessed example.com:8080 for vimbadmin. Then I got redirected back to example.com:22222/vimbadmin/public/.
I managed to solve the problem by changing error_page 497 =200 https://$host:22222$request_uri;
to error_page 497 =200 https://$host:8080$request_uri;
I believe this issue should be further investigated.
Also another issue I would like to mention is about the packages upgrade. I upgraded ee to the latest version v3.3.2 on my VPS and I noticed that vimbadmin and roundcube are not upgraded. ee stack upgrade command should also check for these two.
Thank you.