Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
I
ISPConfig 3
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 486
    • Issues 486
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 23
    • Merge Requests 23
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • ISPConfig
  • ISPConfig 3
  • Merge Requests
  • !698

Merged
Opened Dec 27, 2017 by Costin@manyk

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

  • 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
3.1.11
Milestone
3.1.11
Assign milestone
Time tracking
Reference: ispconfig/ispconfig3!698
Source branch: patch-1

Revert this merge request

This will create a new commit in order to revert the existing changes.

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.

Cherry-pick this merge request

Switch branch
Cancel
A new branch will be created in your fork and a new merge request will be started.