Horizon Workspace 1.0 X-Forwarded-For Configuration
- Last Updated: July 30, 2024
- 1 minute read
- LoadMaster
- LoadMaster LTSF
- Documentation
To allow LoadMaster to request web services that are deployed behind the Gateway-VAs in Horizon Workspace 1.0, the following change must be made:
- SSH into each gateway-VA with the sshuser and su to root.
- Edit /opt/vmware/nginx/conf/nginx.conf using VI, or another screen editor.
- Find the section of the file that reads similar to the following:Note: real_ip_headerX-Forwarded-For; real_ip_recursive off;include gen/real_ip.conf;
- Below the line that reads include gen/real_ip.conf; add a line - set_real_ip_from <LoadMaster IP Address> as shown in the example below: Note: real_ip_headerX-Forwarded-For; real_ip_recursive off;include gen/real_ip.conf; set_real_ip_from 172.16.5.100
- Commit the changes that have just been made and restart the nginx service:
- If using VI to edit the file, type ZZ or :wq!.
- To restart the nginx service type service nginx restart.