How to customize the root web directory? #1532
Answered
by
AlliBalliBaba
tonydotgit
asked this question in
Q&A
|
I need to change the I've read that it needs to be overriden via the Caddy vars, in fact I found the directive https://caddyserver.com/docs/caddyfile/directives/root but I'm not sure how to override it in frankenphp |
Answered by
AlliBalliBaba
May 2, 2025
Replies: 1 comment 2 replies
|
If you need to change the application root, I'd probably recommend using your own Caddyfile. This is the default Caddy file used in the Docker image, it's located at You can either overwrite the file or change the entrypoint of the container to something like: Then you can change the root directly and tailor the configuration to however you need it for your application. |
2 replies
Answer selected by
tonydotgit
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you need to change the application root, I'd probably recommend using your own Caddyfile. This is the default Caddy file used in the Docker image, it's located at
/etc/caddy/Caddyfilein the Docker image.You can either overwrite the file or change the entrypoint of the container to something like:
Then you can change the root directly and tailor the configuration to however you need it for your application.