mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -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//")
|
||||
sed -i "s/$ips/$new_ips/g" $rpaf_conf
|
||||
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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue