Custom domain error for nextcloud set up

Recently bought a domain example.domain.com, and I already set the a record to point to my server IP address (I am using windows 10 PC), so my problem is when the prompt of asking for the custom domain and I use the one I bought it gives this error

ā€œDomain does not point to this server or the reverse proxy is not configured correctly. See the mastercontainer logs for more details. (ā€˜sudo docker logs -f nextcloud-aio-mastercontainerā€™) If you should be using Cloudflare, make sure to disable the Cloudflare Proxy feature as it might block the domain validation. Same for any other firewall or service that blocks unencrypted access on port 443.ā€

and here is the error logs

2024-07-26 17:22:30 NOTICE: PHP message: Expected was: aaaec7d773e8d2b5b8d6e4d5a1f4f950bcef74ffe973c0d1
2024-07-26 17:22:30 NOTICE: PHP message: The error message was:
2024-07-26 17:27:20 NOTICE: PHP message: The response of the connection attempt to ā€œhttp://example.domain.com:443ā€ was:
0400-01-01 00:00:00 The plain HTTP request was sent to HTTPS port

400 Bad Request

The plain HTTP request was sent to HTTPS port
nginx/1.14.0

but I can use a no IP domain such as example.ddns.net, now I already check the dns and a record server for the domain using https://www.whatsmydns.net/ and it already shows my server IP address so I know both is pointing to my server, and when I use the no IP domain it works, but when I use the example.domain.com it does not work and shows the error messages I showed

does any body know how to resolve this?

Hi, is port 443 in your router forwarded to port 443 of your pc?

Yes it is so I used also with a ddns domain in the same account and it works so I asume that if that works then the port is already forwarded and also from my router I already forwared the port and using port checker I see that the port is open

What is your APACHE_PORT set to?

Indications are that it isnā€™t setup up for use with your reverse proxy (which appears to be Nginx).

1 Like