This is an example of how to configure a typical Linux system running Apache 2.0 for DSR:
# ifconfig lo:dsr inet cluster-ip netmask 255.255.255.255 |
Substitute the IP address of the DSR-enabled cluster on FortiADC for cluster-ip in the command above. Note that in most Linux distributions, you are configuring an alias for the loopback interface and should specify a netmask of 255.255.255.255 instead of the netmask used to configure the cluster on FortiADC.
# ifconfig lo:dsr |
The output should look like this:
lo:dsr Link encap:Local Loopback inet addr:cluster-ip Mask:255.255.255.255 UP LOOPBACK RUNNING MTU:16436 Metric:1 |
Listen cluster-ip |
Where cluster-ip is the DSR-enabled cluster IP. Save your changes to the file.
# apachectl restart |
You should now be able to send client requests to the cluster IP and port, and get responses directly from the Apache server running on Linux. Remember that static routes on your servers may be necessary, depending on your network configuration.