DOCROOT_SUBDIR: serve public_html/<sub> (Laravel/CodeIgniter/Symfony) for local dev
New env var DOCROOT_SUBDIR (default empty = unchanged bytes of the rendered vhost, verified by diff against the published image). Validated like WHP's panel/internal/vhost/docrootsub: ASCII letters, digits, . _ -; up to 4 segments, 64 bytes per segment, 128 total; no segment starting with . or -; no . / .. / empty segment; cgi-bin and the other reserved names refused; newline-safe. Invalid = FATAL message and exit 1. When set, DocumentRoot and the <Directory> move to public_html/<sub> and public_html itself gets Options None / AllowOverride None / Require all denied, the same shape WHP renders on the shared tier. The folder is created (as the customer) if missing. entrypoint now stops if create-vhost.sh fails. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0185ukXi4YX5FxJGqhi6qab6
This commit is contained in:
1 parent
2fe13fdab0
commit
55c1a2b284
4 files changed
+69
-5
No files matched your search
@@ -73,7 +73,9 @@ docker run -d -p 80:80 -p 443:443 \
|
||||
- `user` (required): Username for container user
|
||||
- `domain` (required): Primary domain for Apache vhost
|
||||
- `serveralias`: Additional domains (comma-separated)
|
||||
- `PHPVER`: PHP version to use (default: 83)
|
||||
- `PHPVER`: informational only (the image tag selects PHP)
|
||||
- `DOCROOT_SUBDIR`: serve `public_html/<subdir>` (Laravel/CI4 `public`); validated like WHP's docrootsub; default empty = unchanged
|
||||
- `XDEBUG=1`, `PUBLIC_HTTPS_PORT`: DEV mode only
|
||||
- `environment`: DEV or PROD mode
|
||||
|
||||
## Important Technical Details
|
||||
|
||||
Reference in new issue
Block a user