Jump to content

Anyone else using Caddy as a hosting server?


chef

Recommended Posts

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

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 by chef
Link to comment
Share on other sites

Swynol

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

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 by chef
Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...