Moving to a new server - my websites keep loading and crash after a few operations

Hello!
I'm using Apache/2.4.59 (Debian) and I'm moving to a new server.
Please note there is no Bind configuration on it.
I'm testing the sites by updating the Windows Host file.

I've copied /etc/letsencrypt/ and I've checked the permissions & owners. I have a root access.

All sites use the same certificate.

The problem :

when I jump from site 1 to site 2 then site 1 then site 2 (by clicking on a shortcut in the browser) - sometimes after 10 clicks, sometimes after 20 clicks

it keeps loading for a very long time and then I get "Connection refused-PR_CONNECT_RESET_ERROR" and after a few minutes I'm usually kicked off my current SSH (Putty) session. I'm still able to access the http:// sites when the https sites are not working.
For the httpS sites, it keeps loading loading loading and after about 5 minutes - sometimes 10 - or more it is back to normal (without doing anything)

Then I try to click again and again and the problem appears again.

I'm clicking because SITE2 relies on SITE1 for the images, so it is the same as loading 10 images from site1. I've tested and the same problem appears, sometimes with 10 images, sometimes with 20.

There is nothing in the logs. I don't know what's happening.

My config:

SSLEngine on
SSLCertificateFile pathsto/fullchain.pem
SSLCertificateKeyFile pathsto/key.pem
Include /etc/letsencrypt/options-ssl-apache.conf

Could you please help me? Thank you very much. I'm desperate!
Have a great day.

Hello @vc02, welcome back to the Let's Encrypt community. :slightly_smiling_face:

When you opened this thread in the Help section, you should have been provided with a questionnaire. Maybe you didn't get it somehow (which is weird), or you've decided to delete it. In any case, all the answers to this questionnaire are required:

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. crt.sh | example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:

I ran this command:

It produced this output:

My web server is (include version):

The operating system my web server runs on is (include version):

My hosting provider, if applicable, is:

I can login to a root shell on my machine (yes or no, or I don't know):

I'm using a control panel to manage my site (no, or provide the name and version of the control panel):

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot):

Thank you for assisting us in helping YOU!

2 Likes

@vc02 also please show the output of:

  • sudo apachectl -t -D DUMP_VHOSTS

Here details on Apache can be found in documentation and forums:

3 Likes

@vc02 Which browser and on what Operating System?

2 Likes

Hello! Thank you for your help. I’ve spent three days on that problem. I’m desperate. :frowning:

By the way, I don’t understand why all the lines are written twice?
Thank you

VirtualHost configuration:
*:443 is a NameVirtualHost
default server HostnameOfMyServer.eu (/etc/apache2/sites-enabled/000-default-ssl.conf:1)
port 443 namevhost HostnameOfMyServer.eu (/etc/apache2/sites-enabled/000-default-ssl.conf:1)
port 443 namevhost site1.com (/etc/apache2/sites-enabled/site1.com.conf:2)
alias www.site1.com
port 443 namevhost site2.com (/etc/apache2/sites-enabled/site2.com.conf:2)
alias www.site2.com
//////And again????????
port 443 namevhost HostnameOfMyServer.eu (/etc/apache2/sites-enabled/000-default-ssl.conf:1)
port 443 namevhost site1.com (/etc/apache2/sites-enabled/site1.com.conf:2)
alias www.site1.com
port 443 namevhost site2.com (/etc/apache2/sites-enabled/site2.com.conf:2)
alias www.site2.com
*:80 is a NameVirtualHost
default server HostnameOfMyServer.eu (/etc/apache2/sites-enabled/000-default.conf:1)
port 80 namevhost HostnameOfMyServer.eu (/etc/apache2/sites-enabled/000-default.conf:1)
port 80 namevhost site1.com (/etc/apache2/sites-enabled/site1.com.conf:47)
alias www.site1.com
port 80 namevhost site2.com (/etc/apache2/sites-enabled/site2.com.conf:46)
alias www.site2.com
///////And again??????
port 80 namevhost HostnameOfMyServer.eu (/etc/apache2/sites-enabled/000-default.conf:1)
port 80 namevhost site1.com (/etc/apache2/sites-enabled/site1.com.conf:47)
alias www.site1.com
port 80 namevhost site2.com (/etc/apache2/sites-enabled/site2.com.conf:46)
alias www.site2.com

Well each of the line written twice are in 2 separate files (I know not a great answer, I am not an Apache person so)
Kindly wait to see if there are more knowledgeable Let's Encrypt community volunteers willing to assist.

4 Likes

That can happen when there are multiple include statements.
[that load the same config files (more than once)]

Search through for any include statements.

4 Likes

Hello! I need to check it more but I think it is better now!
-> thank you @bruce5051 for having me check dump vhosts again. I’ve read it about 20 times before but I didn’t notice the lines were written twice
-> thank you @rg305 for the includes. It was right. I had uninstalled Apache with purge and I thought I had only the default files, but I still had my own conf file included.

I’ve used default files only and it is better. Fingers crossed.
Thank you

4 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.