Having an issue with setting up custom domain
I am trying to setup a custom domain for nextjs app. I went through the docs and videos. Here is what I did so far.
- I added A record with the VPS ip for the domain.
- Deployed the app on VPS with dokploy using github integration.
- I added custom domain record in dokploy.
- I can't find port because it is running on docker and when I ssh into vps and check, there are no ports assigned for application container.
- App is running well with traefik generated domain.
- When I go the domain it is giving me "This site can’t be reached"
- When I go to VPS ip is is givng me "04 page not found" but is not the nextjs app's 404 page.
I am not sure what is actually going wrong here. Can someone please help me with this?
5 Replies
I found the issue, traefik configurtion was created for two different services for traefik generated domain and my custom domain. I pointed both to same and it worked. But I am not sure why it happend like that.
@Dhanushkahi bro, how do you fix this issue? can you pass any exemple here?
@ruimarcosjoao Hey, I checked the traefik configuration. It was using two different services for different hosts. Since traefik domain was working, I replaced service id in my domain with the traefik domain service id.
how to do that?
my traefik domain dont work!
First, you need to check why it is not working. Did you follow the documention for domain settings and configuring?