regex - redirect http to https OS X Server 5.0.15 -
i have 2 domain names: users.newsite.com , users.oldsite.com. have users.newsite.com hosted on mac os x 10.10.5 using server version 5.0.15. have records setup in dns both domain names (users.newsite.com , users.oldsite.com) point same ip address os x server machine.
we have wildcard ssl cert of *.newsite.com , cert installed on os x server machine. have redirect configured in os x server (i believe uses apache) traffic http version of users.newsite.com going https version of users.newsite.com. working properly.
the problem if uses http version of users.oldsite.com. warning connection not secure because browser trying redirect https version of users.oldsite.com. not have ssl cert oldsite.com.
is there way setup redirect traffic coming http://users.* (newsite or oldsite) gets redirected https version of users.newsite.com?
i can enter url matching regular expression , direct in server app, don't know enter redirect work http versions of users.newsite.com , users.oldsite.com both redirect https version of users.newsite.com.
thanks!
to redirect users https oldsite.com must have valid certificate oldsite.com (the same subdomains).