Is it possible to use caddy for different environment like production , developement for symfony app

hello ,
i want to configure a caddy file for symfony app for different environments , can anyone help me ?

Whats the difference in the environments? I use caddy for both local dev and production. Normally i do have a Caddyfile in the project which enables me to cd into the project dir and just caddy :grinning: basicaly run the caddy command and am good to go. And in production things get a lil bit more complicated set up a systemd service to manage caddy and config is normally in /etc/caddy/Caddyfile

You can simply declare multiple host or ports
Example.com {

Browse
Root c:\web
}

Dev1.Example.com {

Browse
Root c:\web2
}

Localhost:3434 {

Browse
Root c:\web4
}

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