Its not safe its stands

I cant understand what im doing wrong, i tried for a couple of days, but it wont work(!).
Basileus.no

This is my setup in config file.

<VirtualHost *:80>

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

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

<VirtualHost *:443>

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

SSLEngine on
SSLCertificateFile /etc/cloudflare/basileus.crt
SSLCertificateKeyFile /etc/cloudflare/basileus.key
SSLCertificateChainFile /etc/cloudflare/DigiCertCa.pem

Your domain is properly set up, even tough it currently is not proxied, but that is not by any means necessary and depends on what you want to use Cloudflare for.

As for your Apache question, that would be best to clarify at e.g. StackExchange.

But why im i getting a worning when i enter the site?

Which warning?

on www.basilues.no its says that my cert is not good. Not safe?
I dont want a worning on my site.

You have an origin certificate on your server, which is good and secure, however that only works in a proxied context.

Change your DNS records from :grey: to :orange:.

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