Code: Select all
if [ "$access" == "denied" ]; then
if [ "$ip" == "10.0.0.*" ]; then
Errordocument 403 https://www.google.com
elif [ "$ip" == "192.168.0.*" ]; then
Errordocument 403 https://www.yahoo.com
else
Errordocument 403 https://www.msn.com
fi
fi