Trying to convert v1 caddyfile to v2

1. Caddy version (1):

caddy v1

2. How I run Caddy:

I run caddy on my websites uwuchills.cf and troydatboi.ml

a. System environment:

windows 10

b. Command:

paste full file contents here

d. My complete Caddyfile or JSON config:


www.website.coml {
 
		root  C:\php\site\troydatboi
		on startup php_cgi.bat &
		fastcgi / 127.0.0.1:6545 php



}

website.com {
 
    
		root  C:\php\site\troydatboi
		on startup php_cgi.bat &
		fastcgi / 127.0.0.1:6545 php

}
website.com {
 
    
		root  C:\php\site\website
		on startup php_cgi.bat &
		fastcgi / 127.0.0.1:6545 php


}
www.website.com{
 
    
		root  C:\php\site\uwuchills
		on startup php_cgi.bat &
		fastcgi / 127.0.0.1:6545 php

}

DO NOT REDACT anything except credentials

3. The problem I’m having:

so I am trying to convert this caddy file to v2 Im on windows 10 and running it as admin and im using caddyfile.

4. Error messages and/or full log output:

It just makes nothing its an iframe and it shows no error a blank iframe

5. What I already tried:

I’ve read the forums and tryed to read the getting started but I can’t seem to get it to work.

6. Links to relevant resources:

Did you take a look at the upgrade guide?

Unfortunately Caddy v2 doesn’t have an on directive, so you’ll need to run your php-cgi service separately. It might come later as a plugin though.

The upgrade guide should cover the rest (i.e. root and fastcgi).

Actually - there’s a plugin to replace on as it turns out!

1 Like

That is so slick!