- Server operating system version
- AlmaLinux 8.4 x86_64
- Plesk version and microupdate number
- Plesk Obsidian 18.0.41.1
I have a need to OVERWRITE (not append, not extend but OVERWRITE - vhost_nginx.conf is not an option, neither is the additional directives in plesk panel) the core nginx.conf file. More specifically, I need to change how php-fpm listener behaves. By default it uses php-fpm.socket file, and this approach not as scalable as a different solution we have found - use tcp port, which made our project be able to handle larger traffic.
Basically, I need to replace this line in /var/www/vhosts/system/domain/conf/nginx.conf
With this line
Currently we see three options:
1. Refactor our project to use swoole instead of php-fpm - costly solution
2. Overwrite access for this nginx.conf file so that even plesk can't edit it
3. Move to a different hosting without Plesk because all of these limitation are seriously annoying.
...but a more sensible solution would be much appreciated, thanks.
Basically, I need to replace this line in /var/www/vhosts/system/domain/conf/nginx.conf
Code:
fastcgi_pass "unix:/var/www/vhosts/system/api.supermatematik.dk/php-fpm.sock";
With this line
Code:
fastcgi_pass 127.0.0.1:9001;
Currently we see three options:
1. Refactor our project to use swoole instead of php-fpm - costly solution
2. Overwrite access for this nginx.conf file so that even plesk can't edit it
3. Move to a different hosting without Plesk because all of these limitation are seriously annoying.
...but a more sensible solution would be much appreciated, thanks.