• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

Question How to specify UNIX sockets

Zoo3

Regular Pleskian
Server operating system version
CentOS 7.9
Plesk version and microupdate number
18.0.46
I operate Nextcloud(It is not a Plesk application) and I'm currently rechecking my configuration.
I have specified "fastcgi_pass php-handler;" in nginx additional directives. Then I create nc.conf in /etc/nginx/conf.d and write upstrem in it.
Is this approach correct? Is there a more Plesk-like, Plesk legitimate way?
Suppose Nextcloud is operating under a subdomain called NC-DOMAIN.

Code:
upstream php-handler {
        server unix:///var/www/vhosts/system/NC-DOMAIN/php-fpm.sock;
}
 
What is the purpose of the directive? If you want to use Nginx, why not disable Proxy mode and choose the PHP via Nginx handler in the PHP settings?
 
Back
Top