Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • N node-http-proxy
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 482
    • Issues 482
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 102
    • Merge requests 102
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • http ... PARTY!
  • node-http-proxy
  • Issues
  • #107
Closed
Open
Issue created Sep 12, 2011 by Administrator@rootContributor

x-forwarded-for not being set properly

Created by: jfhbrook

Via Assistly:

Re: [nodejs] Express logger, output the client ip while using a proxy Fabryz -

This would probably be best sent to support@nodejitsu.com or just drop into the #nodejitsu IRC room.

x-forwarded-for should be set by node-http-proxy, maybe it's not getting set? I've forwarded this email to our support team and we'll have someone look into it.

Thanks!

  • Marak

On Sun, Sep 11, 2011 at 4:19 AM, Fabryz wrote:

Hello, I tried asking in #node.js and #express but no one answered, so let's try here:

At the moment I'm using this format on express.logger: app.use(express.logger(':remote-addr - :method :url HTTP/:http- version :status :res[content-length] - :response-time ms'));

But on the logs on my hosted app in nodejitsu it actually shows their proxy IP on every request. How to show the real connected client's IP?

Tried with :req[x-forwarded-for] but didn't work.

Assignee
Assign to
Time tracking