Question

Setting Up Cloudflare and apache2

Hi

I was following a guide https://devanswers.co/configure-cloudflare-origin-ca-apache/ for this process as was relitavly uptodate and couldn’t find anything on DO’s area i did find a Nginx one but since i installed this from a template (wordpress) it wasn’t much use

Anywho i followed the guide using the chmod https://scriptstown.com/how-to-setup-cloudflare-ssl-and-configure-origin-certificate-for-apache/

The below is my /etc/apache2/sites-available/000-default.conf

Added to mitigate CVE-2017-8295 vulnerability

UseCanonicalName On

<VirtualHost *:443> ServerAdmin webmaster@localhost

    ServerName website.site
    ServerAlias www.website.site

    DocumentRoot /var/www/html

    <Directory /var/www/html/>
        Options FollowSymLinks
        AllowOverride All
        Require all granted
    </Directory>

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

    SSLCertificateFile /etc/cloudflare/websites.site.pem
    SSLCertificateKeyFile /etc/cloudflare/websites.site.key

</VirtualHost>

I checked the syntax no errors i restarted apache set cloudflare a and aaaa records to the server IP loged into wordpress installed a ssh tool and now i get a cloudflare error 525 handshake error for the host so i know somthing isn’t quite right just to much of a n00b in cirtificates to identify where i messed up.

Any help is apreciated


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

alexdo
Site Moderator
Site Moderator badge
July 5, 2022

Hello there,

Did you run any tests using a tool like SSL Labs? You can check it here:

https://www.ssllabs.com/ssltest/

The tool performs a deep analysis of the configuration of any SSL web server which can be helpful to identify any errors.

Regards

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up