How to customize the root web directory? #1532
-
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 |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
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/Caddyfile
in 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.