Hello everyone, so the problem I have is when I try to reach my domain in https:// I get this error:
An error occurred during a connection to elami.mk. SSL received a record that exceeded the maximum permissible length. Error code: SSL_ERROR_RX_RECORD_TOO_LONG
After some googling I found that it is probably a misconfiguration on the web server somewhere so I checked the .conf files and added these lines
RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
Put these lines here
/etc/sites/available/000-default.conf
This is my elami_mk.conf.conf file
<VirtualHost *:80>
servername elami.nl
serveralias
serveralias www.elami.nl *.elami.nl
ServerAdmin webmaster@elami.nl
ErrorLog ${APACHE_LOG_DIR}/web_website_url2.log
CustomLog ${APACHE_LOG_DIR}/web_website_url2.log combined
RedirectMatch permanent ^/(.*)$ http://elami.mk/$1
<VirtualHost *:80>
servername elami.mk
serveralias www.elami.mk *.elami.mk
ServerAdmin webmaster@elami.mk
DocumentRoot /home/elami_mk/www/public_html
<Directory />
require all granted
Options FollowSymLinks
AllowOverride None
Options +Indexes +FollowSymLinks +MultiViews +ExecCGI -MultiViews +SymLinksIfOwnerMatch
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<IfModule mod_fastcgi.c>
AddHandler php7-fcgi .php
Action php7-fcgi /php7-fcgi
Alias /php7-fcgi /usr/lib/cgi-bin/php7-fcgi
FastCgiExternalServer /usr/lib/cgi-bin/php7-fcgi -socket /var/run/php7.3-fpm-elami_mk.sock -pass-header Authorization
<Directory /usr/lib/cgi-bin>
require all granted
</Directory>
</IfModule>
<FilesMatch \.php$>
SetHandler "proxy:unix:/var/run/php7.3-fpm-elami_mk.sock|fcgi://localhost/"
</FilesMatch>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
ErrorLog ${APACHE_LOG_DIR}/web_website_url.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel error
CustomLog ${APACHE_LOG_DIR}/web_website_url.log combined
My domain is:
www.elami.mk
My web server is (include version):
Apache2
The operating system my web server runs on is (include version):
Distributor ID: Debian
Description: Debian GNU/Linux 9.9 (stretch)
Release: 9.9
Codename: stretch
I can login to a root shell on my machine (yes or no, or I don't know):
Yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
PuTTY
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot):
Newest Version ( Installed 2 days ago)
Thank you!