Welcome! Log In Create A New Profile

Advanced

X-forward-for question

May 06, 2014 05:00AM
Hello,

I plan to set up two servers for a training purpose : one frontend, one database.

I created a tcp server but I need to be sure of the idea :

Be F the frontend and B the backend.

when a client will make a request, it will hit F first (nginx + https involved) then will ask B to process the query with adding a x-forward-for header not to lose the real client ip and port.

Then my tcp server will retrieve those headers, then ask the script to perform the database connection/query.. via fastcgi.

Then what should I do ? Should I just send a request back to nginxwith the afformentioned headers and nginx will set it out properly and re-encrypt the connection ?

I am a bit lost here but I need to improve myself on this field.

Thanks

Is it how it works ?
Subject Author Posted

X-forward-for question

Larry May 06, 2014 05:00AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 318
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready