Your Caddyfile definitely should be serving that site.
Can you let us know what command you use to run Caddy, and what its output is when you start it? It should print out a list of the sites it’s configured to serve.
No worries. I can see there’s likely a few problems.
When Caddy gives you an error and returns to the prompt, that means it actually exited straight away (for the reason given). In this case, it tried to bind port 2015 and failed. At a guess, you’ve got another instance of Caddy still running on the system, configured with an old Caddyfile, hence the “Site not served” errors.
Kill the old Caddy process with pkill -SIGTERM caddy and then try to launch it again from the command line. Use -conf /path/to/Caddyfile flag to make sure it picks up the correct configuration. If Caddy starts successfully, the command will block and you won’t get another prompt in your terminal until you exit Caddy. During that time, it should print out the site labels in your Caddyfile.
OK, I’ve killed all processes but when I try to direct it to the caddyfile I get the below:
Plex-Server:~ rossellner$ caddy -conf ~/Applications/caddy/caddyfile
2018/07/05 22:21:31 loading Caddyfile via flag: open /Users/rossellner/Applications/caddy/caddyfile: no such file or directory
Plex-Server:~ rossellner$
The caddyfile is in a directory called Caddy in the Applications folder of my user. Its a plain text file.
Thanks for your help. I’m sure you have better things to do than help a guy who knows NOTHING!!
I have:-
Deleted the caddyfile and recreated it from scratch
Deleted caddy entirely from the machine and reinstalled to /usr/bin
Caddy & caddyfile are both in the same location
If I start with caddy I get:-
“Activating privacy features… done.
http://:2015
WARNING: File descriptor limit 256 is too low for production servers. At least 8192 is recommended. Fix with “ulimit -n 8192”.”
If I use caddy -conf /usr/bin/caddyfile I get:-
“Plex-Server:~ rossellner$ caddy -conf /usr/bin/caddyfile
2018/07/06 13:37:17 loading Caddyfile via flag: open /usr/bin/caddyfile: no such file or directory
Plex-Server:~ rossellner$”