summaryrefslogtreecommitdiffstats
path: root/18.0/fpm/entrypoint.sh
diff options
context:
space:
mode:
Diffstat (limited to '18.0/fpm/entrypoint.sh')
-rwxr-xr-x18.0/fpm/entrypoint.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/18.0/fpm/entrypoint.sh b/18.0/fpm/entrypoint.sh
index 2510743e..07b44d61 100755
--- a/18.0/fpm/entrypoint.sh
+++ b/18.0/fpm/entrypoint.sh
@@ -43,6 +43,12 @@ file_env() {
unset "$fileVar"
}
+if expr "$1" : "apache" 1>/dev/null; then
+ if [ -n "${APACHE_DISABLE_REWRITE_IP+x}" ]; then
+ a2disconf remoteip
+ fi
+fi
+
if expr "$1" : "apache" 1>/dev/null || [ "$1" = "php-fpm" ] || [ "${NEXTCLOUD_UPDATE:-0}" -eq 1 ]; then
if [ -n "${REDIS_HOST+x}" ]; then