Hello friends, how are you? I have a server with a fixed IP where I have two websites hosted on the same machine running XAMPP with Apache2.4.
The domain fdisistemas.com.br
I managed to register the ssl
follow configuration of the httpd-ssl.conf file
<VirtualHost *:443>
# General setup for the virtual host D:\xampp\htdocs\
DocumentRoot "D:/xampp/htdocs"
ServerName fdisistemas.com.br
ServerAlias www.fdisistemas.com.br
ServerAdmin diego@fdisistemas.com.br
ErrorLog "D:/xampp/apache/logs/errormenufdi.log"
TransferLog "D:/xampp/apache/logs/accessmenufdi.log"
SSLEngine on
#SSLProtocol -all +TLSv1.2
SSLCertificateFile "C:\Certbot\archive\fdisistemas.com.br-0001\cert1.pem"
SSLCertificateKeyFile "C:\Certbot\archive\fdisistemas.com.br-0001\privkey1.pem"
SSLCertificateChainFile "C:\Certbot\archive\fdisistemas.com.br-0001\chain1.pem"
</VirtualHost>
This sometimes works perfectly, but when I try to do the same procedure on another Sunday, it's on the same machine.
<VirtualHost *:443>
# General setup for the virtual host
DocumentRoot "D:/xampp/htdocs/MENUVIRTUAL"
ServerName menuvirtual.net.br
ServerAlias www.menuvirtual.net.br
ServerAdmin diego@menuvirtual.net.br
ErrorLog "D:/xampp/apache/logs/errormenu2.log"
TransferLog "D:/xampp/apache/logs/accessmenu2.log"
SSLEngine on
#SSLProtocol -all +TLSv1.2
SSLCertificateFile "C:\Certbot\archive\menuvirtual.net.br\cert1.pem"
SSLCertificateKeyFile "C:\Certbot\archive\menuvirtual.net.br\privkey1.pem"
SSLCertificateChainFile "C:\Certbot\archive\menuvirtual.net.br\chain1.pem"
</VirtualHost>
This error message comes from Chrome ERR_SSL_PROTOCOL_ERROR and the website does not open.
The commands run to generate the certificate of
fdisistemas.com.br
.\certbot.exe certonly --standalone -d fdisistemas.com.br
that worked
It is
.\certbot.exe certonly --standalone -d menuvirtual.net.br
it's going wrong.
I've tried to do this too
.\certbot.exe certonly --standalone -d fdisistemas.com.br -d menuvirtual.net.br
and using the same certificate for both was not the case.
I will send an image of my infrastructure
an important piece of information that I just noticed if I reverse the order of the VirtualHost of fdisistemas.com.br and put menuvirtual.net.br first
The host menuvirtual.net.br starts to work however
https://menuvirtual.net.br/
without being able to use www.
example https://www.menuvirtual.net.br/ (without ssl)
https://menuvirtual.net.br/ (with ssl).
fdisistemas.com.br now gives an error
ERR_SSL_PROTOCOL_ERROR