502 error in nginx (as proxy to apache)

Discussion in 'Nginx' started by tavenger5, May 17, 2011.

  1. #1
    I recently ran EasyApache to compile apache with mod_deflate. After this everything was fine except for scripts that also contain some ajax with forms.

    Nginx is setup as a proxy to apache to handle static file requests. I'm getting this error when accessing a file upload form:
    "[error] 24263#0: *485033126 upstream prematurely closed connection while reading response header from upstream,"

    I've since re-compiled apached without mod_deflate. This did not work. Nothing else has changed in the configuration. The only thing I could think of is that something else updated to the latest version and there is a bug in the code somewhere.

    Any ideas?
     
    tavenger5, May 17, 2011 IP
  2. tavenger5

    tavenger5 Well-Known Member

    Messages:
    178
    Likes Received:
    3
    Best Answers:
    2
    Trophy Points:
    135
    #2
    I was running php 5.2.9 and updated to 5.2.17 - something in there fixed the problem. (I have other reasons for not updating to 5.3.x)
     
    tavenger5, May 17, 2011 IP