this is a sample how to restricted web access using X-FORWARDED-FOR information from http header.
SetEnvIf X-FORWARDED-FOR ^1.1.1.1$ allowclient
<limit GET POST PUT> order deny,allow deny from all allow from env=allowclient </limit>
this is a sample how to restricted web access using X-FORWARDED-FOR information from http header.
SetEnvIf X-FORWARDED-FOR ^1.1.1.1$ allowclient
<limit GET POST PUT> order deny,allow deny from all allow from env=allowclient </limit>
Network Bonding can provide resiliency to your server in case if one of the network connection failed.
Loading Bonding Driver
/etc/modprobe.conf
[ADD the following lines to the end of the file]
alias bond0 bonding
options bond0 mode=1 miimon=100
You can set up your bond interface according to your needs. Changing one parameters (mode=X) you can have the following bonding types:
mode=0 (balance-rr) Round-robin policy
mode=1 (active-backup) Active-backup policy:
mode=2 (balance-xor) XOR policy:
mode=3 (broadcast) Broadcast policy:
mode=4 (802.3ad) IEEE 802.3ad Dynamic link aggregation.
mode=5 (balance-tlb) Adaptive transmit load balancing:
mode=6 (balance-alb) Adaptive load balancing:
/etc/sysconfig/network-scripts/ifcfg-bond0
DEVICE=bond0
BOOTPROTO=none
ONBOOT=yes
BROADCAST=192.168.242.255
IPADDR=192.168.242.50
NETMASK=255.255.255.0
NETWORK=192.168.242.0
USERCTL=no
GATEWAY=192.168.242.1
TYPE=BOND
/etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=xx:xx:xx:xx:xx:xx
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USERCTL=no
TYPE=Ethernet
/etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
HWADDR=xx:xx:xx:xx:xx:xx
BOOTPROTO=none
ONBOOT=yes
MASTER=bond0
SLAVE=yes
USERCTL=no
TYPE=Ethernet