Can't connect to website after installing Certbot SSL Certificate

I found the problem, I just don't know how to fix it...


I can only have one port open at a time, and I don't know why. I removed everything from the table and added port 80 first and then port 433. Now port 80 is open and port 433 is closed...

Never mind I opened port 433 and not port 443. Now both of them are open:

1 Like

Looks good from my IPv4 location as well

$ nmap -Pn varelasnkrs.com
Starting Nmap 7.80 ( https://nmap.org ) at 2023-03-04 23:30 UTC
Nmap scan report for varelasnkrs.com (129.151.227.103)
Host is up (0.17s latency).
Not shown: 997 filtered ports
PORT    STATE SERVICE
22/tcp  open  ssh
80/tcp  open  http
443/tcp open  https

Nmap done: 1 IP address (1 host up) scanned in 12.96 seconds
2 Likes

Here is another problem:
These 3 links work:

https://www.varelasnkrs.com

But this one doesn't:
http://www.varelasnkrs.com

And I also would like to make the www. version the default address (that everything gets redirected to) and not the one without www, but I don't know what to change to make that happen...

Here is an online tool to assist with checking redirects https://www.redirect-checker.org/

$ curl -Ii http://www.varelasnkrs.com/
HTTP/1.1 404 Not Found
Server: nginx/1.18.0 (Ubuntu)
Date: Sat, 04 Mar 2023 23:38:23 GMT
Content-Type: text/html
Content-Length: 162
Connection: keep-alive

$ curl -Ii https://varelasnkrs.com/
HTTP/1.1 200 OK
Server: nginx/1.18.0 (Ubuntu)
Date: Sat, 04 Mar 2023 23:37:16 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Link: <https://varelasnkrs.com/wp-json/>; rel="https://api.w.org/"
Link: <https://varelasnkrs.com/wp-json/wp/v2/pages/1986>; rel="alternate"; type="application/json"
Link: <https://varelasnkrs.com/>; rel=shortlink
$ curl -k -Ii https://www.varelasnkrs.com/
HTTP/1.1 301 Moved Permanently
Server: nginx/1.18.0 (Ubuntu)
Date: Sat, 04 Mar 2023 23:37:40 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
X-Redirect-By: WordPress
Location: https://varelasnkrs.com/
$ curl -Ii http://varelasnkrs.com/
HTTP/1.1 301 Moved Permanently
Server: nginx/1.18.0 (Ubuntu)
Date: Sat, 04 Mar 2023 23:38:00 GMT
Content-Type: text/html
Content-Length: 178
Connection: keep-alive
Location: https://varelasnkrs.com/
2 Likes

You might find nginx documentation and https://forum.nginx.org/ helpful as well.

2 Likes

I will have to go back and RTFM to learn what is meant by "filtered" [if NOT "closed"]...

2 Likes

Filtered is when no packages get returned by the server, whereas closed means the server actively closed the connection when receiving an incoming connection using an ICMP reply. OP used such a firewall rule earlier shown in this thread (the one with -j REJECT).

4 Likes

I know this is unrelated but can you help me? This website is migrated using all-in-one wp migration plugin from another host to a nginx server running in Oracle Cloud. After the migration the permalinks broke and I can't find a way to fix them. I can only access the homepage. I already tried changing the structure to another one and back to the old one and it didn't work. Making another .htaccess file doesn't work either (this wp never created one).

I do not actually know enough to be able to help.
Kindly wait to see if there are more knowledgeable Let's Encrypt community volunteers willing to assist.

1 Like

I'm afraid that's quite out of the scope of this Community.

5 Likes

Please see Post #26 in this thread:

1 Like

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