Skip to content

Commit 6ae4ca4

Browse files
committed
warning message if embedded app and no root specified in Caddyfile
1 parent ba34a7f commit 6ae4ca4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

caddy/caddy.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,8 @@ func (f *FrankenPHPModule) Provision(ctx caddy.Context) error {
398398
} else {
399399
rrs := false
400400
f.Root = filepath.Join(frankenphp.EmbeddedAppPath, defaultDocumentRoot)
401+
f.logger.Warn(fmt.Sprintf("No root path specified, using default: %q", defaultDocumentRoot))
402+
f.logger.Warn(`If you would like to serve from the embedded app directory, specify "root ./" `)
401403
f.ResolveRootSymlink = &rrs
402404
}
403405
} else {

0 commit comments

Comments
 (0)