Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • I ISPConfig 3
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 551
    • Issues 551
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 36
    • Merge requests 36
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ISPConfig
  • ISPConfig 3
  • Merge requests
  • !698

Nginx feature ##subroot for special applications (Magento 2, Laravel etc)

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Costin requested to merge manyk/ispconfig3:patch-1 into stable-3.1 Dec 27, 2017
  • Overview 19
  • Commits 1
  • Changes 1

Some applications require serving the index and the static files from a subfolder instead of the default root folder (web). In this case ISPConfig configuration could be difficult to build if there is no way to extend default root to point to specific subfolder.

This feature works almost the same way as ##delete## and ##merge## with the difference that it includes the subfolder that should be added to the default root path. The user input is sanitized to prevent any security issues.

Example:

  • standard Nginx configuration: root /var/www/{domain.tld}/web/
  • user writes the following token into the nginx Directives form: ##subroot public/html ##
  • on save, the configuration is updated as follows: root /var/www/{domain.tld}/web/public/html

This should solve all the following requests:

#1528 (closed) #2150 (closed) #2529 (closed) #3584 (closed) #3957 (closed) #4077 (closed) #4451

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: patch-1