I redirect all http requests for my subdomain to https by using following code.
<VirtualHost *:80>
ServerName subdomain.example.com
Redirect 302 / https://subdomain.example.com
</VirtualHost>
Now my problem is how do I do it for all subdomains.
For example http:subdomain1.example.com should go to https:subdomain1.example.com and http:subdomain2.example.com should go to https:subdomain2.example.com
How do I do it for all subdomains without having to create one virtualhost for all of them