Shared media and HTTPS

I have configured subsonic to listen only on port 4443 with HTTPS, and now shared media URLs do not work.
Shared media URLs are forced to be of the form http://[myname].subsonic.org/share/XYZAB (http part mandatory), and will unconditionally redirect to http://[my-server-ip]:4040/share/XYZAB, even though the HTTP port is configured to 0 (disabled) and https to 4443. If I manually rewrite the URL to https://[my-server-ip]:4443/share/XYZAB, things seem to work.
How can I configure Subsonic to generate proper URLs?
Thanks
Shared media URLs are forced to be of the form http://[myname].subsonic.org/share/XYZAB (http part mandatory), and will unconditionally redirect to http://[my-server-ip]:4040/share/XYZAB, even though the HTTP port is configured to 0 (disabled) and https to 4443. If I manually rewrite the URL to https://[my-server-ip]:4443/share/XYZAB, things seem to work.
How can I configure Subsonic to generate proper URLs?
Thanks
