diff --git a/pages/docs/config/cgi-scgi-jsgi-php.md b/pages/docs/config/cgi-scgi-jsgi-php.md index a4909db..9006462 100644 --- a/pages/docs/config/cgi-scgi-jsgi-php.md +++ b/pages/docs/config/cgi-scgi-jsgi-php.md @@ -58,7 +58,26 @@ OrangeCircle can be configured in _orangecircle-config.json_ file in SVR.JS inst } ``` -OrangeCircle 1.0.7 and newer work with web root outside SVR.JS installation directory (older ones need _config.json_ file in web root with valid JSON data; not necessarily related to _config.json_ in SVR.JS installation directory) +OrangeCircle 1.0.7 and newer work with web root outside SVR.JS installation directory (older ones need _config.json_ file in web root with valid JSON data; not necessarily related to _config.json_ in SVR.JS installation directory). + +OrangeCircle 1.3.0 and newer support multiple SCGI servers. These versions of OrangeCircle can be configured to use multiple SCGI servers like this: + +```json +{ + "multiConfig": { + "example.com": { + "path": "/scgi", + "host": "localhost", + "port": 4000 + }, + "example.org": { + "path": "/scgiorg", + "host": "localhost", + "port": 4001 + } + } +} +``` ## JSGI via YellowSquare diff --git a/pages/docs/config/fastcgi-php-fpm.md b/pages/docs/config/fastcgi-php-fpm.md index 1a07918..c8257f3 100644 --- a/pages/docs/config/fastcgi-php-fpm.md +++ b/pages/docs/config/fastcgi-php-fpm.md @@ -35,6 +35,25 @@ You can configure file extensions outside of path specified in _greenrhombus-con [".php"] ``` +GreenRhombus 1.1.0 and newer support multiple FastCGI servers. These versions of GreenRhombus can be configured to use multiple FastCGI servers like this: + +```json +{ + "multiConfig": { + "example.com": { + "path": "/fastcgi", + "host": "localhost", + "port": 7000 + }, + "example.org": { + "path": "/fastcgiorg", + "host": "localhost", + "port": 7001 + } + } +} +``` + ## PHP-FPM GreenRhombus supports running PHP files through PHP-FPM. If you want to use GreenRhombus only for PHP-FPM, configure _greenrhombus-config.json_ like this (in this case we're using socket in `/run/php/php8.2-fpm.sock`; you can check it in PHP-FPM configuration file, e.g. `/etc/php/8.2/fpm/pool.d/www.conf`; configure it without _path_ property): @@ -51,6 +70,20 @@ And configure _greenrhombus-scriptexts.json_ like this: [".php"] ``` +If using GreenRhombus 1.1.0 or newer, you can configure GreenRhombus to connect to multiple PHP-FPM instances like this: +```json +{ + "multiConfig": { + "example.com": { + "socketPath": "/run/php/php8.2-fpm.sock" + }, + "example.org": { + "socketPath": "/run/php/php7.4-fpm.sock" + } + } +} +``` + PHP-FPM may run on different user than SVR.JS web server, so you may need to set permissions for the user, which PHP-FPM runs on. -If you are using PHP-FPM only for SVR.JS, you can set the _listen.owner_ and _listen.group_ properties to _svrjs_ in the PHP-FPM configuration file (e.g. `/etc/php/8.2/fpm/pool.d/www.conf`). +If you are using PHP-FPM only for SVR.JS, you can set the _listen.owner_ and _listen.group_ properties to _svrjs_ in the PHP-FPM configuration file (e.g. `/etc/php/8.2/fpm/pool.d/www.conf`). \ No newline at end of file