We have an apache server which hosts multiple domains from, which some have https enabled and some do not.
I would like to forward the user from https://exampleWithoutHttps to http://exampleWithoutHttps on all domains whithout https. I have tried to create a redirect rule in virtualhost *:443 but this creates the following error:
Server should be SSL-aware but has no certificate configured
The problem is that I cant change "Listen 443" to "Listen 443 http" as this would break my hosts with ssl enabled.
Is there a way I could have a redirect without a ssl certificate ?
NameVirtualHost *:80 Listen 80 NameVirtualHost *:443 Listen 443
mi site condfig:
<VirtualHost *:80> DocumentRoot /path/to/dr ServerName exampleWithoutHttps.com ServerAlias www.exampleWithoutHttps.com </VirtualHost> <VirtualHost *:443> ServerName exampleWithoutHttps.com ServerAlias www.exampleWithoutHttps.com Redirect permanent / http://www.exampleWithoutHttps.com/ </VirtualHost>