Virtual Hosts Apache - CloudFlare

I have an issue with the domain https://dgdinteriors.com (https://dgdinteriors.com/)

I can see here it should be updated, basically the IP may need to work with WWW. and without…

It was migrated from one CloudFlare Account to another…

But at the moment it fails to connect to the host, please advise.

See my .conf file:-

<VirtualHost *:80>
    ServerAdmin [email protected]
	ServerName dgdinteriors.com
    ServerAlias dgdinteriors.com #www.
    DocumentRoot /var/www/html
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

<VirtualHost *:443>

    ServerAdmin [email protected]
    ServerName dgdinteriors.com
    ServerAlias dgdinteriors.com
    DocumentRoot /var/www/dgdinteriors.com/public_html
    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

    #SSLEngine on
    #SSLCertificateFile /etc/cloudflare/dgdinteriors.com.pem
    #SSLCertificateKeyFile /etc/cloudflare/dgdinteriors.com.key

</VirtualHost>

Any advise?

In your second vhost, you should uncomment the last three SSL related lines. Those are needed to secure the connection to Cloudflare.

Otherwise, your site loads for me

1 Like

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