How can I set up apache2 (or nginx, possibly) to serve the same set of virtual hosts over both HTTP and HTTPS?
The certificate part is not the problem — all virtual hosts are inside one subdomain and I use a wildcard certificate for it.
I'm thinking of using proxypass for it, but, first, it seems slightly ineffective and, second, I'm not sure whether it would be secure (i.e. so that server cannot be asked over HTTPS for some irrelevant host); and I don't (yet) see how this can be set up in apache anyway.
EDIT: Duplication of configuration parts is undesirable, i.e. it is still a last-resort solution.