Redirect an Apache2 SSL VirtualHost with mod_alias
- by Jeff
I want to make sure there aren't any odd behaviors that I don't know about when redirecting a SSL VirtualHost with mod_alias Redirect as outlined by Apache here.
My code seems to work, but since SSL virtual hosts are restricted to just one IP address, I want to make sure there aren't any problems eluding me. Explicitly not using TLS. I'm stuck with Apache 2.2 for now.
<VirtualHost *:443>
ServerName example.com
SSLEngine On
Redirect 301 / https://www.example.com/
</VirtualHost>
<VirtualHost *:443>
ServerName www.example.com
SSLEngine On
# Do stuff #
</VirtualHost>
So I guess my question is, should SSL VirtualHost redirection with mod_alias Redirect work the same as non-SSL redirection?