I have successfully registered the cert for my new domain.
However, I can't access that new domain.
Can someone help me to solve this problem?
My domain is: gdghanoiadmin.xyz
I ran this command: sudo certbot --nginx
It produced this output: Success
My web server is (include version):
The operating system my web server runs on is (include version): ubuntu 18.04
My hosting provider, if applicable, is:
I can login to a root shell on my machine (yes or no, or I don't know):
I'm using a control panel to manage my site (no, or provide the name and version of the control panel):
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot):
I opened port 443
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN
You should also open port 80.
But, HTTPS requests to your domain redirect in a loop. You should review the server block for port 443.
Also make sure if you are using a router that you are forwarding incoming requests on port 443 to your nginx server on port 443.
curl -iL https://gdghanoiadmin.xyz/
HTTP/1.1 301 Moved Permanently
Server: nginx/1.14.0 (Ubuntu)
Location: https://gdghanoiadmin.xyz/
HTTP/1.1 301 Moved Permanently
Server: nginx/1.14.0 (Ubuntu)
Location: https://gdghanoiadmin.xyz/
HTTP/1.1 301 Moved Permanently
Server: nginx/1.14.0 (Ubuntu)
Location: https://gdghanoiadmin.xyz/
HTTP requests are failing with http error 500 Internal Server Error but that's a different problem
4 Likes
Thanks for yours answer, but i dont understand because I`m open port 80 and port 443
You give me detail answer ?
Do you want me to provide my nginx.config configuration file ?
Sure, if you post it someone will look at it (maybe even me). The best way is to run this command and upload the (large) config.txt file it creates. Use the upload button on this forum's post menu
sudo nginx -T >config.txt
(capital T is important)
4 Likes
This is what I presently see:
HTTP
$ curl -Ii http://gdghanoiadmin.xyz/.well-known/acme-challenge/sometestfile
HTTP/1.1 301 Moved Permanently
Server: nginx/1.14.0 (Ubuntu)
Date: Mon, 19 Jun 2023 21:41:15 GMT
Content-Type: text/html
Content-Length: 194
Connection: keep-alive
Location: https://gdghanoiadmin.xyz/.well-known/acme-challenge/sometestfile
HTTPS
$ curl -Ii https://gdghanoiadmin.xyz/.well-known/acme-challenge/sometestfile
HTTP/1.1 502 Bad Gateway
Server: nginx/1.14.0 (Ubuntu)
Date: Mon, 19 Jun 2023 21:41:25 GMT
Content-Type: text/html
Content-Length: 182
Connection: keep-alive
2 Likes
system
Closed
July 19, 2023, 9:43pm
8
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.