Caddy server latest version

I have just downloaded the latest version on windows but i can not get it to start.I have the plugin hook installed which it the same has my old version.Please see photo i have attached.

Hi @jbravo2uk,

The startup and shutdown directives have been deprecated for some time now, and in the latest release (0.10.12) they were removed.

https://caddyserver.com/blog/caddy-0_10_12-released#removed-startup-shutdown-directives

You’ll need to change your Caddyfile to use the on directive instead.

https://caddyserver.com/docs/on

2 Likes

sorry im being stupid here what would the caddy file line look like for windows.

Literally just replace the word “startup” with “on startup” :slight_smile:

This is not working ??

Can you post your caddyfile please so we can see the issue?

You can redact your domains if you wish.

Hi here it is its very basic for a reverse proxy but it works on a older caddy server.

domain names domain names domain names domain names

proxy /calibre http://127.0.0.1:8080 {
transparent
header_upstream X-Forwarded-Host {host}
}
proxy /lazy http://127.0.0.1:5299 {
transparent
header_upstream X-Forwarded-Host {host}
}
fastcgi / 127.0.0.1:6545 php
proxy /jackett http://127.0.0.1:9117 {
transparent
header_upstream X-Forwarded-Host {remote}
}
proxy /gui http://127.0.0.1:47783 {
transparent
header_upstream X-Forwarded-Host {host}
}
proxy /htpc http://127.0.0.1:8085 {
transparent
header_upstream X-Forwarded-Host {host}
}

proxy /sabnzbd http://127.0.0.1:8087 {
transparent
header_upstream X-Forwarded-Host {host}
}
proxy /radarr http://127.0.0.1:7878 {
transparent
header_upstream X-Forwarded-Host {host}
}
proxy /sonarr http://127.0.0.1:8981 {
transparent
header_upstream X-Forwarded-Host {host}
}
proxy /nzbhydra http://127.0.0.1:5075 {
header_upstream X-Forwarded-For {remote}
}
proxy /web http://127.0.0.1:32400 {
transparent
header_upstream X-Forwarded-Host {host}
}
proxy /plexpy http://127.0.0.1:8181 {
transparent
header_upstream X-Forwarded-Host {host}
}

rewrite {
if_op or
if {>Referer} has /deluge
if {>Referer} has /localhost/themes/css/
if {>Referer} has /localhost/css/
to /deluge/{path}
}

proxy /deluge http://127.0.0.1:8112 {
without /deluge
transparent
header_upstream X-Forwarded-Host {host}
}
rewrite {
if_op or
if {>Referer} has /organizr
if {>Referer} has /localhost/themes/css/
if {>Referer} has /localhost/css/
to /organizr/{path}
}

proxy /organizr http://127.0.0.1:32771 {
without /organizr
transparent
header_upstream X-Forwarded-Host {host}
}

And what is the error?

caddy server will not start with the new version.

That’s not helpful to us trying to help you. What is the error message?

sorry here are the warnings i am getting.
2018/03/30 09:55:28 [WARNING] Root path does not exist: c:\caddy\www
2018/03/30 09:55:28
[WARNING] Root path does not exist: c:\caddy\www
2018/03/30 09:55:28
[WARNING] Root path does not exist: c:\caddy\www
2018/03/30 09:55:28
[WARNING] Root path does not exist: c:\caddy\www
2018/03/30 09:55:28
[WARNING] Root path does not exist: c:\caddy\www
2018/03/30 09:55:28 h
ttps://domain.me
2018/03/30 09:55:28

2018/03/30 09:55:28 https://domain.me
2018/03/30 09:55:28
https://domain.zapto.org
2018/03/30 09:55:28 https://domain.tv
2018/03/30 09:55

hi i have managed to get it going now by adding {
root /www/} but i cannot get it running has a window service i have the hook plugin installed.?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.