mirror of
https://github.com/serghey-rodin/vesta.git
synced 2025-08-20 13:24:24 -07:00
Subroutine for mod_remoteip in /bin/v-delete-sys-ip
This commit is contained in:
parent
3aeec7ce74
commit
e91f5c6da8
1 changed files with 6 additions and 0 deletions
|
@ -99,6 +99,12 @@ if [ ! -z "$PROXY_SYSTEM" ]; then
|
||||||
new_ips=$(echo "$rpaf_str" | sed "s/$ip//")
|
new_ips=$(echo "$rpaf_str" | sed "s/$ip//")
|
||||||
sed -i "s/$ips/$new_ips/g" $rpaf_conf
|
sed -i "s/$ips/$new_ips/g" $rpaf_conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#mod_remoteip
|
||||||
|
remoteip_conf="/etc/$WEB_SYSTEM/mods-enabled/remoteip.conf"
|
||||||
|
if [ -e "$remoteip_conf" ]; then
|
||||||
|
sed -i "s/RemoteIPInternalProxy $ip//g" $remoteip_conf
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue