I have a vhost running on a CentOS 7 Server, which is serving 2 Prestashop stores.
In this vhost conf file, I have a ServerName and a ServerAlias, each directing to a dedicated store.
Recently I moved both stores to HTTPS, but one question remains: I know how to rewrite the URL to redirect from HTTP to HTTPS, but can I redirect based on the URL asked by the client?
I know how to do it with 2 vhosts, but as the conf will be near identical, i wanted to do it with only one file.
https://store2.example.com all in the same Vhost conf file.