sprintcube / docker-compose-lamp

A basic LAMP stack environment built using Docker Compose.
MIT License
2.7k stars 1.43k forks source link

[BUG] Default SSL setup gives SSL_ERROR_RX_RECORD_TOO_LONG in Firefox #266

Open KhazAkar opened 9 months ago

KhazAkar commented 9 months ago

Describe the bug When trying to connect to LAMP stack over HTTPS, SSL_ERROR_RX_RECORD_TOO_LONG happens

which Branch / PHP Version are you using ? php83

Steps to reproduce

  1. Try to open page using https, straight from repo

Expected behavior No SSL error

Screenshots image

Desktop (please complete the following information):

dockerd -v Docker version 25.0.3, build 4debf41

docker-compose -v Docker Compose version v2.24.5


**Additional context**
Server runs in KVM, slackware64-current using docker build from their site, 'statically' built.
blizzardengle commented 1 month ago

👋 I was the one who added SSL support to the project. To clarify SSL (HTTPS) support is disabled by default and requires manual setup.

An SSL_ERROR_RX_RECORD_TOO_LONG error often occurs when you instruct the server (Apache in this case) to listen for SSL/TLS connections on a port the client is trying to connect to, but you are sending back an HTTP response instead. This HTTP response is then interpreted as the SSL/TLS handshake and fails.

You should troubleshoot and verify the following:

This Stack Overflow post might help with troubleshooting Apache. Here is the configuration instructions for SSL in the project.