Nginx feature ##subroot for special applications (Magento 2, Laravel etc)
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