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