- Plesk Onyx for Linux
- Plesk Onyx 17.5 for Linux
Ruby or Node.js environment variables list is reset if the directive containing all variables is longer than 256 characters in Plesk.
This is an bug with ID EXTRUBY-39 for Ruby and EXTNODEJS-50 for Node.js EXTRUBY-39 is planned to be fixed in future product updates.
Bug EXTNODEJS-50 for Node.js has been fixed in extension Node.js v.1.3.3.
As a workaround, use the following:
1. Log into Plesk UI.
2. For the domains served by Apache set the variable via Additional Apache directives in Domains > example.com > Apache & nginx Settings as follows:
SetEnv variable value
3. For the domains served by nginx set the variable via Additional nginx directives in Domains > example.com > Apache & nginx Settings as follows:
passenger_env_var $variable value;