Skip to content

How to customize the root web directory? #1532

Answered by AlliBalliBaba
tonnyorg asked this question in Q&A
Discussion options

You must be logged in to vote

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:

frankenphp -c /path/to/Caddyfile

Then you can change the root directly and tailor the configuration to however you need it for your application.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@tonnyorg
Comment options

@AlliBalliBaba
Comment options

Answer selected by tonnyorg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants