SSL Proxy?

It’s me again :slight_smile:
I hope this one is simple, nevertheless I have not found anything about in the forums. So here it is:
Since most virtual servers don’t have SSL, I would like to offer an SSL proxy.
So to access domain.tld via ssl, one would go https://ssl.virtualmin.tld/domain.tld/ and it would basically automatically proxy that.
I “could” do something with Rewrite I guess, but then how do I check that the domain is hosted on the same server? I don’t want that to proxy the world :stuck_out_tongue:
Anyone has an idea how this can be implemented?