I have an apache webserver that has about 150 VirtualHosts spread out over 9 IP addresses. I'd like to redirect or rewrite http connections to https. The solutions I've found have the rewrite/redirect inside the definitions but since this server has so many, I was hoping there was a more elegant way of doing it other than adding 150 rewrites.
Its ubuntu 22 btw.
Any ideas?