This just started being a problem (likely after a software upgrade?). The relevant config bits are:
<VirtualHost *:80>
ServerAdmin webmaster@singpolyma.net
ServerName singpolyma.net
ServerAlias www.singpolyma.net
RewriteEngine on
RewriteRule ^/(.*) https://singpolyma.net/$1 [R=301,L]
</VirtualHost>
<VirtualHost 184.107.182.218:443>
GnuTLSEnable on
GnuTLSPriorities NORMAL
GnuTLSCertificateFile /etc/ssl/certs/singpolyma.net2013.crt
GnuTLSKeyFile /etc/ssl/certs/singpolyma.net2013.key
From everywhere that is not the local box, this works as expected. When I try to connect from the box itself, I get apaching replying on 443 on that IP with non-HTTPS. When I run curl with --interface
and ask it to use a different interface than the one that hosts that IP, then it also works fine, even on the box.
So something strange is happening, just when I do a local request.