My site is hitting error 500 i couldnt proceed when the first two lines of code on how to secure apache

Probably, yes.

That shouldn't be the case. Usually, the files in sites-enabled are symbolic links to the files in sites-available, so that the files in both directories are actually the same.

So something is not correct it seems.

Anyway, I'm off now, maybe someone else can pitch in from now on.


certbot probably didn't find the HTTP vhost for, so it couldn't configure the redirection for you.

That said, redirections are a very simple thing to do.
You can do a web search to include your web server type and you'll find dozens of examples.


You should uncomment both of those. A ServerAlias is unusual without a ServerName and you probably want the www subdomain working at some point anyway.


Here is a list of issued Certificates |, the latest being 2023-03-22.
Namely this one, which has SANs containing &

Only Port 80 is open to the domain name, so I cannot check the Certificate.

$ nmap -Pn
Starting Nmap 7.80 ( ) at 2023-03-22 19:33 UTC
Nmap scan report for (
Host is up (0.14s latency).
rDNS record for
Not shown: 997 filtered ports
22/tcp   open  ssh
80/tcp   open  http
3306/tcp open  mysql

Nmap done: 1 IP address (1 host up) scanned in 11.82 seconds

Also is showing 3 WARNINGs:
This is the first

The domain is being served through Cloudflare CDN. Any Let's Encrypt certificate installed on the origin server will only encrypt traffic between the server and Cloudflare. It is strongly recommended that the SSL option 'Full SSL (strict)' be enabled. 


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