Welcome! Log In Create A New Profile

Advanced

Re: 502 bad gateway error with php5-fpm on Debian 7

GASPARD Kévin
February 20, 2013 06:38PM
>> >The nginx config you showed is not the one that the running nginx is
>> >using when it created this log file.
>>
>> I've pasted a working vhost configuration file and pasted an error on an
>> other configuration file but they are identical except for document root
>> and domain. To create this file I've used 'cp' and modified it.
>
> When a request comes in to nginx, it chooses exactly one server{} block
> to handle it. That server{} block is chosen based firstly on the incoming
> ip:port; and then secondly on the incoming host name used in the request.
>
> Looking at your config file, plus every file include'd in it, can you
> see which one server{} block is used for this request? (You'll need
> to look at all of the "listen" directives first, and then all of the
> "server_name" directives in the server{}s with the "listen" that best
> matches the incoming ip:port.)
>
> What fastcgi_pass line is used in that one server{} block?

I've do a grep -R 'listen' /etc/nginx/conf.d/ and every vhost
configuration file have two lines, exactly the same:

listen 80;
listen 443 ssl;


In the past, to be sure to don't make mistake I copied an old vhost
configuration file and I modified it every times for a new website. So
you'll see this kind of line:

server_name subdomain.koshie.fr www.subdomain.koshie.fr;


Some of these vhost are different but that's because they need regex for
some stuff.

Finally, for fastcgi_pass, I've only tested my configuration and pasted
here data with the vhosts containing the value pasted in the first mail:
fastcgi_pass unix:/var/run/php5-fpm.sock;

I've for now a lot of domain with my old configuration value, listening on
the network if I don't say rubish (and as you say before).

I'm sorry but I'm not sure to understand why you are asking me to do and I
given you what I can. If I miss something can you point me on the good way
please?

Good night, Koshie

--
Sorry for my english, I'm trying the best in each e-mail writing. Tell me
if I'm not clear enough.
This mail account is only for list reading, to contact me send an e-mail
at kevingaspard@koshie.fr

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

502 bad gateway error with php5-fpm on Debian 7

GASPARD Kévin February 20, 2013 05:30PM

Re: 502 bad gateway error with php5-fpm on Debian 7

Francis Daly February 20, 2013 05:42PM

Re: 502 bad gateway error with php5-fpm on Debian 7

GASPARD Kévin February 20, 2013 05:56PM

Re: 502 bad gateway error with php5-fpm on Debian 7

Francis Daly February 20, 2013 06:14PM

Re: 502 bad gateway error with php5-fpm on Debian 7

GASPARD Kévin February 20, 2013 06:38PM

Re: 502 bad gateway error with php5-fpm on Debian 7

Francis Daly February 20, 2013 06:56PM

Re: 502 bad gateway error with php5-fpm on Debian 7

GASPARD Kévin February 21, 2013 04:26AM

Re: 502 bad gateway error with php5-fpm on Debian 7

Wolfsrudel February 21, 2013 05:17AM

Re: 502 bad gateway error with php5-fpm on Debian 7

Wolfsrudel February 21, 2013 05:26AM

Re: 502 bad gateway error with php5-fpm on Debian 7

GASPARD Kévin February 21, 2013 06:10AM

Re: 502 bad gateway error with php5-fpm on Debian 7

Mark Alan February 21, 2013 07:48AM

Re: 502 bad gateway error with php5-fpm on Debian 7

GASPARD Kévin February 21, 2013 08:10AM

Re: nginx + php5-fpm on Debian

Mark Alan February 21, 2013 03:08PM

Re: 502 bad gateway error with php5-fpm on Debian 7

w.b March 01, 2013 08:56AM

Re: 502 bad gateway error with php5-fpm on Debian 7

GASPARD Kévin February 21, 2013 06:14AM

Re: 502 bad gateway error with php5-fpm on Debian 7

Francis Daly February 21, 2013 08:52AM

Re: 502 bad gateway error with php5-fpm on Debian 7

GASPARD kévin March 02, 2013 02:02PM

Re: 502 bad gateway error with php5-fpm on Debian 7

GASPARD kévin March 02, 2013 02:16PM

Re: 502 bad gateway error with php5-fpm on Debian 7

GASPARD kévin March 03, 2013 07:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 321
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready