Author Topic: HFS over nginx  (Read 2879 times)

0 Members and 1 Guest are viewing this topic.

Offline lysanev

  • Occasional poster
  • *
  • Posts: 3
    • View Profile
HFS over nginx
« on: May 01, 2014, 07:50:46 PM »
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: 12903
    • View Profile
Re: HFS over nginx
« Reply #1 on: May 03, 2014, 11:56:31 AM »
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
Re: HFS over nginx
« Reply #2 on: May 03, 2014, 01:15:47 PM »
Thank you! All working fine!

Offline Fysack

  • Tireless poster
  • ****
  • Posts: 597
  • present picture
    • View Profile
    • Admin
Re: HFS over nginx
« Reply #3 on: January 17, 2015, 11:38:24 PM »
lol
GOD CAN READ YOUR MIND