jeudi 31 mars 2016

www and non-www domain name resolution error?

One of my websites, https://adenix.me, is having an issue where at certain times, usually about 30 minutes after initially going to the site, 'adenix.me' won't resolve. When this happens 'www.adenix.me' works fine and other devices seem to be working fine for both version of the url. To make the situation odder, I only see this issue on my personal computer and it is temporarily fixed by restarting my computer.

While the problem appears to be isolated I am afraid that I just haven't waited long enough on other machines. Below is my DNS configuration and the apache2 config files for the site (### denotes that I've cloaked it).

Thanks for any help in advance!

DNS - Cloudflare

A       adenix.me   points to        ###              Automatic
CNAME   www         is an alias of   adenix.me        Automatic

adenix.me.conf

<VirtualHost *:80>

    ServerAdmin admin@adenix.me
    ServerName www.adenix.me
    ServerAlias adenix.me
    DocumentRoot /var/www/###

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

    <Directory /var/www/adenix.me>
            Options -Indexes
            AllowOverride All
    </Directory>

    RewriteEngine on
    RewriteCond %{SERVER_NAME} =adenix.me [OR]
    RewriteCond %{SERVER_NAME} =www.adenix.me
    RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
</VirtualHost>

adenix.me-ssl.conf

<IfModule mod_ssl.c>
<VirtualHost *:443>

    ServerAdmin admin@adenix.me
    ServerName www.adenix.me
    ServerAlias adenix.me
    DocumentRoot /var/www/###

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

    <Directory /var/www/adenix.me>
        Options -Indexes
        AllowOverride All
    </Directory>

    SSLCertificateFile ###
    SSLCertificateKeyFile ###
    Include ###
</VirtualHost>
</IfModule>




Aucun commentaire:

Enregistrer un commentaire