We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 654838b commit 579b1acCopy full SHA for 579b1ac
1 file changed
bin/v-add-sys-ip
@@ -142,6 +142,12 @@ if [ ! -z "$PROXY_SYSTEM" ]; then
142
rpaf_str="$rpaf_str $ip"
143
sed -i "s/.*RPAFproxy_ips.*/$rpaf_str/" $rpaf_conf
144
fi
145
+
146
+ #mod_remoteip
147
+ remoteip_conf="/etc/$WEB_SYSTEM/mods-enabled/remoteip.conf"
148
+ if [ $( grep -ic "$ip" $remoteip_conf ) -eq 0 ]; then
149
+ sed -i "s/<\/IfModule>/RemoteIPInternalProxy $ip\n<\/IfModule>/g" $remoteip_conf
150
+ fi
151
152
153
0 commit comments