Skip to content

add root folder option - #11

Merged
Mkkbeydoun merged 1 commit into
mainfrom
root-folder
Oct 28, 2026
Merged

Mkkbeydoun merged 1 commit into
mainfrom
root-folder

Conversation

@Mkkbeydoun

@Mkkbeydoun Mkkbeydoun commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

Adds a Root Folder variable. Set it to any folder in webroot/, by name or as a path to a nested folder (e.g. dev/main for webroot/dev/main), and webroot/<folder> is served at /, while the other folders in webroot/ are still served at their own path (e.g. webroot/blog at /blog/). Links to /<folder>/... 301 to /.... Blank keeps the current behaviour.

  • start.sh writes tmp/nginx-root.conf on every start and default.conf includes it
  • the value is checked (every part of the path starts with a letter or digit, so no .., dotfiles or spaces), a missing folder falls back to webroot/ with a console warning
  • older default.conf without the include gets a warning to reinstall
  • PHP, PATH_INFO and the dotfile/composer/vendor blocks work the same for the root folder and the other folders
  • egg version 1.0.4, README section added

@Mkkbeydoun
Mkkbeydoun force-pushed the root-folder branch 2 times, most recently from 4d7b223 to 384e28b Compare October 28, 2026 20:57
@Mkkbeydoun
Mkkbeydoun merged commit 7e5c318 into main Oct 28, 2026
1 check passed
@Mkkbeydoun
Mkkbeydoun deleted the root-folder branch October 28, 2026 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant