Projects
Custom web root directory
Alternative document root path within /web — wizard or Project settings.
-
On create
New project wizard: Document root field. Default is /web/public_html/<domain>/ — you can enter subfolder e.g. /web/public_html/example.com/public/.
-
Path restriction
Document root must be inside panel /web root directory. Paths outside /web are not allowed.
-
Change after create
Projects → project → Settings → Document root. After change update virtual host manually or regenerate it.
TipLaravel and similar frameworks often use public/ subfolder as document root.