The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
88 views

504 Gateway timeout / 502 Bad gateway after installing php curl - server nginx

I have (well had) a working server with nginx on board. A server (dedicated) was only used to host a drupal site. Recently we decided to host also a magento store on it and started preparation. Since ...
0
votes
0answers
76 views

502 Bad Gateway on high traffic

When my website receives many requests per second (I assume at least 80 requests per second), the server randomly blocks some requests with 502 Bad Gateway nginx-errors. This happens every few ...
0
votes
0answers
46 views

Nginx not forwarding some requests

I have a set-up where Nginx is set up as a reverse proxy forwarding requests with some pre-defined strings in URL to a checkout server. Other requests are sent to a load balancer which further ...
0
votes
2answers
776 views

Nginx error stating connection refused to PHP-FPM port

Newly create LEMP stack running PHP-FPM on Ubuntu 14.04 x64. Attempting to access some PHP in my webroot. Browser is showing 502 Bad Gateway and Nginx error log is showing the following (my IP and ...
0
votes
0answers
301 views

Magento + Nginx + PHP-FPM (Order Address Edit results in 502 Bad Gateway)

I have a magento on a LEMP stack (Nginx, PHP-FPM and Percona). Every time I click on Edit on the order address, the page is taking a long time to load and then result in 502 Bad Gateway error. ...
1
vote
1answer
2k views

Nginx + PHP-FPM on Centos 6.5 gives me 502 Bad Gateway (fpm error: unable to read what child say: Bad file descriptor)

I am setting up a standard LEMP stack. My current setup is giving me the following error: 502 Bad Gateway This is what is currently installed on my server: Here's the configurations I've ...
0
votes
3answers
733 views

Nginx 502 Bad Gateway when uploading files

I get the following error when I try to upload files to my node.js based web app: 2014/05/20 04:30:20 [error] 31070#0: *5 upstream prematurely closed connection while reading response header from ...
0
votes
0answers
215 views

Azure CDN '502 - Bad gateway' over HTTPS

I have Azure CDN targeting to a cloud service and it has worked for months but from last weekend it fails with '502 - Bad gateway' on HTTPS. If I request source directly (using cloud service name) ...
0
votes
1answer
1k views

Apache VirtualHost setup… 502 Bad Gateway

I am trying to set up apache virtual hosts on Ubuntu 12.04 lts. I followed this guide here http://www.debian-administration.org/articles/412 except I used /var/www not /home/www. Ive set the document ...
0
votes
1answer
1k views

HTTP 502 Bad Gateway error response

I'm debugging an issue and running out of ideas. I have a server with SharePoint code hosted at port 8080 and a WCF REST service at port 8801. From another machine on the domain, I can connect to the ...
1
vote
2answers
415 views

Error 502 - Random SSL Library Error: 336151568 error:14094410

I'm facing a random 502 error on my webservers. Rate : 0.5% Error in my logs: SSL Library Error: 336151568 error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure OpenSSL Version ...
0
votes
1answer
879 views

php-fpm + persistent sockets = 502 bad gateway

Put on your reading glasses - this will be a long-ish one. First, what I'm doing. I'm building a web-app interface for some particularly slow tcp devices. Opening a socket to them takes 200ms and an ...
0
votes
1answer
205 views

Passenger + RVM returns 502 for ruby 1.8.7 (passenger_root lies in ruby 1.9.3)

I'm using Passenger + RVM + Nginx, and my Rails applications which are configured for Ruby 1.9.3 work fine, but those for 1.8.7 always return a 502 error. Can anyone spot the trouble? My config is as ...
1
vote
1answer
231 views

Sporatic 502 errors with Ruby on Rails site running on Nginx

My Ruby on Rails site is throwing sporadic 502 errors. It is running on Nginx, installed with Passenger, and is hosted on a server running Ubuntu 10.04. It seems that the errors are becoming more and ...
1
vote
2answers
3k views

502 Bad Gateway - nginx

I am randomly receiving 502 Bad Gateway error pages - I can reproduce this issue by modifying hosting plans in plesk 11 and in the same time refreshing a page for a minute or two. When I get the 502 ...
0
votes
1answer
285 views

custom 502 error page for nginx with unicorn not working, driving me insane ;)

I tried several times and on multiple occasions to try and fix the below code for nginx with unicorn, but it just isen't working. So now posting here in last report some of you more talented could see ...
0
votes
1answer
652 views

custom 502 bad gataway for nginx, cannot get it to work, whats wrong?

Im trying to catch a 502 bad gataway for nginx with unicorn. This error is thrown when unicorn is not running. Im trying to use a custom error page instead for when unicorn is not running to no avail. ...
0
votes
1answer
749 views

Communication failure between nginx and PHP-FPM

I've received my very first VPS just today, and wanted to install a nginx + PHP + MariaDB setup on it. And, well, I actually did it, but I've got a problem configuring it. Getting nginx to serve a ...
0
votes
1answer
387 views

IIS7 - HTTP 502 in IE8 over HTTPS

I am developing web app using .NET 4.0 I'ts hosted on IIS7 and served over HTTPS. When I try to request a page with IE8, it doesn't load completely. So I looked into fiddler, and it shows me an HTTP ...
2
votes
2answers
6k views

Nginx: 502 Bad GateWay

I try install nginx. I used to lighttpd but now we must install nginx. Can you help me with configuration nginx? I use debian 6. My nginx.conf: user www-data; worker_processes 4; pid ...
2
votes
1answer
4k views

Resource temporarily unavailable while connecting to upstream (php5-fpm)

I frequently get this error on random pages when the are like ~+10K connections (netstat -an |grep 80 |wc -l). This happens while there is still +10GB of free memory and server load is less than 3. ...
0
votes
1answer
314 views

How to config Apache to get error 502 Bad Gateway for testing?

I'm developing a website with ajax allow many queries insert many many row to database in the same time. It's run ok on localhost, but when I deploy onto server (free Amazon server), it's often get ...
2
votes
2answers
3k views

Finding Nginx/PHP-FPM bottleneck that is causing random 502 gateway errors

I work for a rather busy internet site that is often gets very large spikes of traffic. During these spikes hundreds of pages per second are requested and this produces random 502 gateway errors. Now ...
15
votes
4answers
53k views

connect() failed (111: Connection refused) while connecting to upstream

I'm experiencing 502 gateway errors when accessing a PHP file in a directory (http://domain.com/dev/index.php), the logs simply says this: 2011/09/30 23:47:54 [error] 31160#0: *35 connect() failed ...
0
votes
4answers
553 views

502 error after adding module to a Django project running on nginx and gunicorn

I am trying to add a module to an existing Django project, but once I have done it I get a 502 error. The server is running Ubuntu. I don't think it has to do with the applications code because I got ...
1
vote
1answer
348 views

mod_rpaf with nginx + apache causes 502 error (firephp fault)

I have such trouble. There are nginx (as frontent to apache) and apache with mod_rpaf installed. It worked good for a month or so. But today error 502 returned to some requests to php (not all ...
3
votes
1answer
739 views

qmail responds 502 unimplemented on STARTTLS

I am trying to send mail with php using the PEAR Mail_queue package. It should be working, and it appeared to work twice, but for some reason I keep getting the following error response from qmail: ...
5
votes
1answer
5k views

Nginx + PHP-FPM = “Random” 502 Bad Gateway

I am running Nginx and proxying php requests via FastCGI to PHP-FPM for processing. I will randomly receive 502 Bad Gateway error pages - I can reproduce this issue by clicking around my PHP websites ...
4
votes
2answers
10k views

nginx 502 bad gateway - fastcgi not listening? (Debian 5)

I have experience with nginx but it's always been pre-installed for me (via VPS.net pre-configured image). I really like what it does for me, and now I'm trying to install it on my own server with ...
7
votes
4answers
2k views

What's the difference between domainname.com and www.domainname.com?

I'm a developer and I'm having trouble setting up some hosting, and I hope you guys can help me out. I've got a domain I'm setting up for a friend. URLs work fine when I use the short form, like ...