chef 3749 Posted January 14, 2018 Share Posted January 14, 2018 I recently came into some trouble while using caddy. I had to change my domain name because the amount of money to renew it was really expensive and it was cheaper to purchase a new one. However when I changed the Caddyfile with the new domain name, it wouldn't create a proper certificate and thus the server will not run. Does anyone have any experience with caddy? Would someone mind taking a moment to help we trouble shoot some issues? I'd like to get my emby server back up again since it is proxied behind caddy Link to comment Share on other sites More sharing options...
Luke 37232 Posted January 14, 2018 Share Posted January 14, 2018 I think I've seen a few people here using it. Link to comment Share on other sites More sharing options...
Swynol 375 Posted January 14, 2018 Share Posted January 14, 2018 used it in the past but now use nginx. does it create any cert? is it creating the test one? Link to comment Share on other sites More sharing options...
chef 3749 Posted January 14, 2018 Author Share Posted January 14, 2018 (edited) it is creating a '.caddy' folder which contains some 'acme' information. Even though my domain is pointing back to my External IP address, caddy is returning an error which shows Activating privacy features...2018/01/14 15:17:12 [u.e] failed to g et certificate: acme: Error 403 - urn:acme:error:unauthorized - Invalid response from http://u.e/.well-known/acme-challenge/YQ2y4tdsBLnfIRXcRUdOWs- 7zEXAXAhPq6Bu9eUJDW8 [MYIP]: 404 Error Detail: Validation for u.e:80 Resolved to: MYIP Used: MYIP I have created a rule for my router which allows 443 and 80, I created a firewall rule which allows Caddy to pass through, and yet still unable to get the server up. Edited January 14, 2018 by chef Link to comment Share on other sites More sharing options...
Swynol 375 Posted January 14, 2018 Share Posted January 14, 2018 your domain name is there, might want to remove it Link to comment Share on other sites More sharing options...
Swynol 375 Posted January 14, 2018 Share Posted January 14, 2018 its saves the certs in the users folder somewhere. there might be a csr and key there from previous domain name which might cause issues Link to comment Share on other sites More sharing options...
chef 3749 Posted January 14, 2018 Author Share Posted January 14, 2018 (edited) I deleted that folder and tried to re run caddy, and still no joy. Very strange. If I run caddy with "http://MYDOMAIN"the server will run but browsing to that domain will call up my security cameras for my home, which is really strange because none of the IP cams are even proxied in the Caddyfile. If I use just the domain name without 'http://' the server errors. Unfortunately I haven't the foggiest what is happening. How, I wonder, are my IP camera streams even being picked up by caddy. Makes me worried. Edited January 14, 2018 by chef Link to comment Share on other sites More sharing options...
chef 3749 Posted January 15, 2018 Author Share Posted January 15, 2018 An entire day later and I found the bloody problem... Make sure Network firewall settings for both port 80 is set on your modem for internal and enteral. Then make sure you do the same again for port 443. In windows firewall, make sure your server has permissions to pass through on those very same ports. I was about to go mad about it. 1 Link to comment Share on other sites More sharing options...
Swynol 375 Posted January 15, 2018 Share Posted January 15, 2018 glad its working. strange it was working previously with your other domain name. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now