Standing up a web server, got the error code in the subject when I tried
sudo wget -v https://192.168.0.2
but I get my index.html if I do
sudo wget -v http://192.168.0.2:443
Every thread I have read says that it's because HTTP is listening on 443 and blocking SSL from using it and I confirmed that with
sudo openssl s_client -connect 192.168.0.2:443 -debug
Using CentOS 7
EDIT #1: tried to post configs, but Ctrl+K isn't formatting my code. Ask for specific lines of a config file, will post in a comment.
- /etc/hosts
- /etc/httpd/conf/httpd.conf
- /etc/httpd/conf.d/ssl.conf
- /etc/httpd/conf.d/non-ssl.conf
- /etc/httpd/sites-available/mysite.conf
Tried these threads already:
- SSL connection error:140770FC
- error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol
- SMTPS: OpenSSL - SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol s23_clnt.c:787:
- file_get_contents(): SSL operation failed with code 1. And more
If I missed a thread, please let me know, and I'll try anything.
httpd -S
that should really show you the VirtualHost defined. – Patrick Mevzek