I have a strange behaviour on my VPS that I cannot explain.
My server is a Lucid Lynx. Apache version is 2.2.14
I wanted to make some requests to localhost faster, so I added an extra line in my /etc/hosts file:
127.0.0.1 example.com # example.com is currently hosted on the same instance.
I restarted apache2, and after an hour of debugging I found that my server answers correctly to any https calls on 443 port when they are coming from a remote source, but tries to communicate with simple http, when I'm trying from it's own console.
Removing the alias from /etc/hosts and restarting apache2 fixes the problem.
Is there a common misconfiguration somewhere that can cause this behavior?
https://mydomain.com/
on the console causes a redirect tohttp://mydomain.com/
?curl -I https://example.com/
<VirtualHost ...>
line in your config?