Welcome! Log In Create A New Profile

Advanced

Alter nginx settings to allow debugging with xdebug

Posted by wayback007 
Alter nginx settings to allow debugging with xdebug
April 04, 2013 09:20PM
Hi,

Pretty new to the workings of nginx. Inherited a couple of servers running nginx as load balancers. My specific issue is I'm debugging a PHP app (sugarcrm) using xdebug in netbeans 7.3. It works fine at first as the debug session starts and fires up Sugar and I can start debugging but in about 60 seconds nginx comes back with a 'backend unavailable' page. I tried setting a "proxy_read_timeout 240" in the conf file specific to this instance of sugar but it didn't help. The only setting I could find that referenced anything related to time was in the nginx.conf file with the "keepalive_timeout 240;" (I set it to 240 from 60) This didn't help either.

I'll start digging through documentation but I'm on a tight timeline and was hoping someone might have a quick answer.

Error log shows the following:

013/04/04 23:56:02 [error] 10976#0: *3099448 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 172.x.x.x, server: sugartest.insightsnow.com, request: "POST /index.php HTTP/1.1", upstream: "http://172.x.x.x:80/index.php", host: "sugartest.insightsnow.com", referrer: "https://sugartest.insightsnow.com/index.php"

Thanks for any help offered.
Jerry
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 144
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready