Report this

What is the reason for this report?

How long for CNAME record deletetion to take effect

Posted on April 19, 2020

Hello,

I wanted to create a subdomain but hurriedly added a CNAME Alias pointing main domain to the subdomain. Once realized I deleted that record. Now its been more than 72 hours but the main domain still redirects to subdomain. Extra information: I created VHost for subdomain and had a WordPress running on it. After deleting CNAME I deactivated the subdomain Vhost by a2dissite.

Conf of my domain

<VirtualHost *:80>

        ServerName example.com
        ServerAlias www.example.com
        ServerAdmin email@example.com
        DocumentRoot /var/www/example.com/public_html


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

RewriteEngine on
RewriteCond %{SERVER_NAME} =example.com [OR]
RewriteCond %{SERVER_NAME} =www.example.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

<Directory /var/www/example.com/public_html/>
Options Indexes FollowSymLinks MultiViews
       AllowOverride All
       Order allow,deny
       allow from all

       RewriteEngine On
       RewriteBase /
       RewriteRule ^index\.php$ - [L]
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /index.php [L]
</Directory>
</VirtualHost>

and of my subdomain

<VirtualHost *:80>

        ServerName sub.example.com
        ServerAlias www.sub.example.com
       ServerAdmin email@example.com
       DocumentRoot /var/www/example.com/sub


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

</VirtualHost>

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.