Answering myself, as bug #423506 ( “Enable easy use of reverse proxies” ) is still open, I went with opening up another port on my router and using nginx to accept https requests and forward them to the OH2 server.
On the other hand there is https://github.com/openhab/openhab2/blob/master/docs/sources/configuration/jetty.md - so it seems to have worked in the past already (and I only missed to close the Bugzilla entry at that time).
I never used that myself, so I cannot help on analyzing problems. But maybe you can try and see if this description is still up to date and solves your problems?
The description is up-to-date. I solved the issue by opening up a second port on my router and creating a separate nginx “server” on that port. OH2 seems to require being in the root of the URI of the server.
What does not work, and is documented in the ES bug, is putting openhab below some URI.
i am following the same approach as the tread starter. I want to run oh2 in a lxc container. The container is only reachable from the host, so i want to set up a nginx reverse proxy on the host. The description in the documentation doesn’t work, neither the documentation on the nginx site.
Is there a possibility to get the error fixed?