nginx correct setup

Post Reply
Fett
Posts: 85
Joined: Tue Feb 28, 2017 1:23 pm

nginx correct setup

Post by Fett »

Greetings,

When in admin I see the proxy warning. I use nginx as reverse proxy with Apache as backend.

Its not very clear for me from the manual how can I fix this problem? It does say:

"How to fix: ask admin to pass ip in REAL_IP only. After you have it fixed make sure there's no field HTTP_FORWARED_FOR in /scj/admin/test.php"


Which (nginx) config files I have to edit and what to write there exactly?

This is (nginx plus apache) is a very common setup these days, would be nice to find a step 1-2-3

instructions of what to do exactly to set up SmartCJ with this configuration. Thank you!
admin
Site Admin
Posts: 37247
Joined: Wed Sep 10, 2008 11:43 am

Re: nginx correct setup

Post by admin »

It actually depends of nginx setup you use
Do you do it all by yourself ?
Don't forget to run script update
Fett
Posts: 85
Joined: Tue Feb 28, 2017 1:23 pm

Re: nginx correct setup

Post by Fett »

Yes. I have access to all config files. Where do I start?
admin
Site Admin
Posts: 37247
Joined: Wed Sep 10, 2008 11:43 am

Re: nginx correct setup

Post by admin »

nginx.conf

and google "nginx adds forwared_for" + nginx mod_real_ip
Don't forget to run script update
Fett
Posts: 85
Joined: Tue Feb 28, 2017 1:23 pm

Re: nginx correct setup

Post by Fett »

will do, thanks
admin
Site Admin
Posts: 37247
Joined: Wed Sep 10, 2008 11:43 am

Re: nginx correct setup

Post by admin »

NP
Don't forget to run script update
Post Reply