Re: Why are my CGI scripts not executed like PHP ?

2018-04-06 Thread Ralph Seichter
On 06.04.18 19:04, Richard Stanway wrote: > https://www.nginx.com/resources/wiki/start/topics/examples/fcgiwrap/ I altered my setup to use fcgiwrap. Since then, I keep getting "502 Bad Gateway" errors, with log entries like this: 2018/04/06 21:21:02 [error] 17838#0: *1 upstream prematurely clo

Re: Wordpress multisite + SSL

2018-04-06 Thread Giulio Loffreda
crystal clear Your “in short” explanation was perfect. Thank you On 6 Apr 2018 at 15:56 -0300, basti , wrote: > > > On 06.04.2018 20:17, Giulio Loffreda wrote: > > Hi > > > > I created one separated file for while (as we have just one customer > > under ssl) and placed this file on sites-enable.

Re: Wordpress multisite + SSL

2018-04-06 Thread basti
On 06.04.2018 20:17, Giulio Loffreda wrote: > Hi > > I created one separated file for while (as we have just one customer > under ssl) and placed this file on sites-enable. So it is being loaded > at top of nginx configuration. > Then I have another conf file to handle 443 requests. > > The aim

Re: Wordpress multisite + SSL

2018-04-06 Thread Giulio Loffreda
Hi I created one separated file for while (as we have just one customer under ssl) and placed this file on sites-enable. So it is being loaded at top of nginx configuration. Then I have another conf file to handle 443 requests. The aim is to have one certificate for each customer, as customer m

Re: Wordpress multisite + SSL

2018-04-06 Thread basti
Hello, where have you defined your certificate? I cant see. if you use one serer directive for all your domains, all domains must be in this certificate (Subject alt names). On 06.04.2018 19:40, Giulio Loffreda wrote: > Dears > > > I have one wordpress multisite with subdomain being served by Ng

Wordpress multisite + SSL

2018-04-06 Thread Giulio Loffreda
Dears I have one wordpress multisite with subdomain being served by Nginx. We have the main domain, lets call domain.com. We use custom domains for customer site lets say customerone.com, customertwo.com… with correspondent subdomain on WP, as customerone.domain.com, customertwo.domain.com. Ev

Why are my CGI scripts not executed like PHP ?

2018-04-06 Thread Ralph Seichter
On 06.04.2018 19:04, Richard Stanway wrote: > PHP-FPM is only for PHP. You'll want something like fcgiwrap for > regular CGI files. Seriously? But http://php.net/manual/en/intro.fpm.php states: "FPM (FastCGI Process Manager) is an alternative PHP FastCGI implementation with some additional featur

Re: Nginx throttling issue?

2018-04-06 Thread Richard Stanway via nginx
Even though it shouldn't be reaching your limits, limit_req does delay in 1 second increments which sounds like it could be responsible for this. You should see error log entries if this happens (severity warning). Have you tried without the limit_req option? You can also use the nodelay option to

Re: Why are my CGI scripts not executed like PHP ?

2018-04-06 Thread Richard Stanway via nginx
PHP-FPM is only for PHP. You'll want something like fcgiwrap for regular CGI files. See https://www.nginx.com/resources/wiki/start/topics/examples/fcgiwrap/ On Fri, Apr 6, 2018 at 6:02 PM, Ralph Seichter wrote: > Hello list, > > I am fairly new to nginx and now have stumbled across an issue I c

Why are my CGI scripts not executed like PHP ?

2018-04-06 Thread Ralph Seichter
Hello list, I am fairly new to nginx and now have stumbled across an issue I can't solve. I have successfully configured nginx on Gentoo Linux to run PHP applications (e.g. phpBB and phpMyAdmin) with php-fpm. As far as I understand, php-fpm should also be able to execute "regular CGI" in the form