rejetto forum

HFS over nginx

0 Members and 1 Guest are viewing this topic.

Offline lysanev

  • Occasional poster
  • *
    • Posts: 3
    • View Profile
Hello!
I use Nginx http server as reverse proxy. All working fine, so fast, but...i have no real ip adresses in logs access, so i can see only one my ip of my nginx server (internal ip)

nginx compile with "ngx_http_realip_module", and in configuration file of nginx is: 
 proxy_set_header        Host            my.example.com;
 proxy_set_header        X-Real-IP       $remote_addr;
 proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;

when i use nginx+apache i CAN see real ip, but with nginx+HFS i can`t see...

Help me ))))


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
it's possible, but disabled for security reasons.

You have to edit the INI file
as reported here
http://www.rejetto.com/forum/hfs-~-http-file-server/requestshow-ip-address-by-using-forwarded-ip/msg1037912/#msg1037912


save configuration to INI
quit HFS
edit INI
change the value
save
run hfs


Offline lysanev

  • Occasional poster
  • *
    • Posts: 3
    • View Profile

Offline Fysack

  • Tireless poster
  • ****
    • Posts: 598
  • present picture
    • View Profile
    • Admin