Problem with my new host (ubuntu - apache) & Cloudflare dns

My site is already using Cloudflare DNS, but I’m going to use a new host. The new host has an Ubuntu 20 + apache2. I want to change the IP address in the current records to switch to the new host, but when I change the IP, it gives me a timeout error.
I’ve set the virtual host config, here is my v host config:

<VirtualHost *:80>
ServerAdmin [email protected]
ServerName example.net
ServerAlias www.example.net
DocumentRoot /var/www/html

<Directory "/var/www/html">
    Options FollowSymLinks MultiViews
    Order Allow,Deny
    Allow from all
    ReWriteEngine On
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

<VirtualHost *:443>

ServerAdmin [email protected]
ServerName example.net
ServerAlias www.example.net

<Directory "/var/www/html">
    Options FollowSymLinks MultiViews
    Order Allow,Deny
    Allow from all
    ReWriteEngine On
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

SSLEngine on
SSLCertificateFile /etc/cloudflare/example.net.pem
SSLCertificateKeyFile /etc/cloudflare/example.net.key

When making major changes, I recommend that you use the “Pause Cloudflare on Site” option from the Overview page for that domain and wait five minutes to take effect. Then make sure the site is functional over HTTPS.

1 Like

I tried it, waited for 5 min, but I still have the same problem.
For SSL, I generated an Origin Certificate from Clouldflare, moved the files and set the above settings.

What problem are you seeing while Cloudflare is paused? It shouldn’t look the same because Cloudflare has its own Timeout error screens.

It’s a chrome default timeout error

Then you still need to do this:

I checked it with a SSL Installation Diagnostics Tool and SSL is working fine.

But you just said it wasn’t:

If you, at home, on your browser, with a direct (Cloudflare Paused) connection, can’t reach a working site, you need to fix that.

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