• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Nextcloud's nginx.conf on Plesk

Zoo3

Regular Pleskian
I have installed and used Nextcloud, but I have one unknown point.

Code:
upstream php-handler {
   server 127.0.0.1:9000;
   #server unix:/var/run/php/php7.0-fpm.sock;
}

I wrote this directly in nginx.conf. Is there a way to configure this in Plesk?

--
PHP7.3, Nginx 1.14.2
 
You can try to create file upstream.conf, for example in /etc/nginx/conf.d/ directory with this content. Thins config will be loaded by nginx and will not be affected by any Plesk/nginx update.
 
Thank you. Is it impossible to configure only with Plesk?
It is global nginx config. In Plesk you can configure nginx config on domain level as "Additional nginx directives" in Web settings of your subscription.
 
Gracias. ¿Es imposible configurar solo con Plesk?
Les dejo mi conf personalizado para nextcloud en plesk.
Lo hice como dice Igor, les dejo la ruta exacta en la GUI.

midominio.com
Haz clic en Hosting y DNS
Haga clic en Configuración de Apache y nginx
Si navega hasta el final de la página, encontrará:
Configuración de Apache y nginx y una caja vacía.

Mi configuración aquí:

ubicación ^~ /.bien conocido {
ubicación = /.bien conocido/carddav { return 301 /qbox/remote.php/dav/; }
ubicación = /.bien conocido/caldav { return 301 /qbox/remote.php/dav/; }
ubicación /.bien conocido/acme-challenge { try_files $uri $uri/ =404; }
ubicación /.bien conocido/pki-validación { try_files $uri $uri/ =404; }

devuelve 301 /qbox/index.php$request_uri;
}
 

Attachments

  • Directivas-adicionales.png
    Directivas-adicionales.png
    239.1 KB · Views: 1
I have installed and used Nextcloud, but I have one unknown point.

Code:
upstream php-handler {
   server 127.0.0.1:9000;
   #server unix:/var/run/php/php7.0-fpm.sock;
}

I wrote this directly in nginx.conf. Is there a way to configure this in Plesk?

--
PHP7.3, Nginx 1.14.2
Do you solved your problem?
Do you install Nextcloud manual or with Docker Compose?
 
Do you solved your problem?
Do you install Nextcloud manual or with Docker Compose?

I had forgotten what I used to write here. I have created a new topic. I'm able to run the software by writing directly in nginx.conf.
I wish there was a way to do it within Plesk instead of directly in nginx.
 
Back
Top