Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6713651
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:24:20+00:00 2026-05-26T08:24:20+00:00

My current server setup consists of Apache and Ejabberd. Apache acts as a proxy

  • 0

My current server setup consists of Apache and Ejabberd. Apache acts as a proxy to ejabberd requests.

Now I have included another level where Nginx acts as a proxy image server in front of apache.
So Nginx process all requests by defaults and forwards all php requests to apache.

Now I am stuck with the ejabberd polling as it now communicates with nginx first instead of apache, so I keep getting a 502 Bad request.

Ho do I go about this situation.

I tired this in nginx but it does not work

proxy_set_header Host $http_host;
           proxy_set_header X-Real-IP $remote_addr;
           proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
           proxy_pass http://localhost:5280;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T08:24:20+00:00Added an answer on May 26, 2026 at 8:24 am

    I wasn’t the one that set it up, but I have the same kind of setup currently running in a production environment. We use the same settings as you posted above, with the addition of these three.

    proxy_buffering off;
    tcp_nodelay on;
    keepalive_timeout 55;
    

    I think that the tcp_nodelay is the vital one as the connections are meant to be keep-alive.

    If this does not fix it, please provide error logs from nginx.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

At my current job we have a CMS system that is .NET/SQL Server based.
Our environment consists of Project Server 2007 and MOSS 2007. We have around 750
Background I have a simple socket server setup that I am trying to allow
I have myself a self-hosted WCF server setup, which serves a clientaccesspolicy.xml and an
I have a client/server type application setup, similar to a bittorrent downloading program. However,
I have setup a web app for a client. The server is in US
I currently have a mongoDB setup with a mongos server, a config server, and
my current setup is as follows: We have a Linux samba share that contains
I am trying to coordinate the move of a site from its current server
How to do it? I don't want to use this: HttpContext.Current.Server.MapPath Is there a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.