My first erpnext domain is www.sitea.com.
Now I creat another domain www.siteb.com.
I used these commands from frappe_docker docs:
echo "ROUTER=siteb" > ~/gitops/siteb.env
echo "SITES=\`www.siteb.com\`" >> ~/gitops/siteb.env
echo "BASE_SITE=www.sitea.com" >> ~/gitops/siteb.env
echo "BENCH_NETWORK=sitea" >> ~/gitops/siteb.env
docker compose --project-name siteb \
--env-file ~/gitops/siteb.env \
-f overrides/compose.custom-domain.yaml \
-f overrides/compose.custom-domain-ssl.yaml config > ~/gitops/siteb.yaml
docker compose --project-name siteb -f ~/gitops/siteb.yaml up -d
I found caddy:2 container was created successfully.
But when I visit http://www.siteb.com, it only returns “404 page not found”.
curl http://www.siteb.com
404 page not found
When I visit https://www.siteb.com, it pops up “connection not secure”.
curl https://www.siteb.com
curl: (60) SSL certificate problem: self-signed certificate
More details here: https://curl.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
My visit to http://www.sitea.com or https://www.sitea.com is ok.
So, what’s wrong?