Redirect an Apache2 SSL VirtualHost with mod_alias
Posted
by
Jeff
on Server Fault
See other posts from Server Fault
or by Jeff
Published on 2012-10-19T00:04:27Z
Indexed on
2012/10/19
5:06 UTC
Read the original article
Hit count: 353
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?
© Server Fault or respective owner