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 8269707
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T06:19:12+00:00 2026-06-08T06:19:12+00:00

We have two Amazon EC2 instances, with a load balancer and a Django App.

  • 0

We have two Amazon EC2 instances, with a load balancer and a Django App. Amazon says the ELB is configured by default to send X-Forwarded-For headers to the Django App.

I’ve printed request.META and I see no HTTP_X_FORWARDED_FOR and when I do request.META.get('HTTP_X_FORWARDED_FOR'), I get None.

Is there a django configuration (we’re using 1.3 by the way), that I have to configure or set so that Django will read the Forwarded-For header?

Thanks,

Sam

  • 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-06-08T06:19:13+00:00Added an answer on June 8, 2026 at 6:19 am

    After more investigation, we discovered that ELB was forwarding to port 443 on TCP and Apache was handling the SSL cert. In order to get ELB to forward X-Forwarded-For headers, it should be forwarding on HTTP, which also requires that the SSL Cert be installed on the ELB rather than on Apache. Hope this helps others

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

Sidebar

Related Questions

I have two EC2 instances behind a Amazon load balancer. The load balancer routes
I have two amazon ec2 instances, (1) using SLES and running my current site,
I have two machines on amazon ec2, one with a drupal installation and another
We've deployed our rails app to EC2. In our setup, we have two proxies
I have snapshots of two oracle database tablespaces in amazon ec2. Currently we are
I have an application hosted on an Amazon server with two instances, one for
I have two files client.php and server.php. The client file send a HTTP request
I have strange JRUN issue. I have installed ColdFusion 9.0 on Amazon EC2 instance
I have setup a Hadoop cluster containing 5 nodes on Amazon EC2. Now, when
I'm trying to get started with Amazon's EC2. I have to choose an image

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.