little intro:
I have SSL cert for specific domains (example.com, info.example.com, intranet.example.com
, ...)
All domains except the info.example.com
are running on Apache. info.example.com
is running on windows server.
My problem
All sites are fully working, but I have problem with info.example.com
which I dont want to server as "HTTPS" (yet). But I do have a permanent redirect in my VirtualHosts... and that makes the problem -> when I visit info.example.com
, it redirect me to https://info.example.com
which I don't want to. If I delete permanent redirect it will works, but I don't want to serve anything via http on my example.com
.
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "/var/www/html"
ServerName example.com
Redirect permanent / https://example.com/
<Directory "/var/www/html">
Options -Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
I wouldn't even ask here, because it must be something really stupid, but I'm struggling with this too long.
Excuse my english.
All domains except the info.example.com are running on Apache. info.example.com is running on windows server.
So info.example.com doesn't run on Apache ? you should correct this, else your question doesn't have any meaning. And the (Apache) configuration you posted is aboutexample.com
and notinfo.example.com
as you are asking. You should open your 2 eyes instead of using only one in your pyramid fingers.info.example.com
and since it doesn't run on apache I don't even know it it's possible to manage virtualhost for this. I guess, I'm asking really wrong - consider me as "newbie"-, but i just want to excludeinfo.example.com
from serving via https. and I've noticed that when I delete permanent redirect in myexample.com
it's working, so I though there could be something like permanent redirect only towww.example.com
domain and not redirect whole second level domain -example.com