From 0c8443b9bc754744a63ad11bdca118156006cd49 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Wed, 8 Sep 2021 13:41:56 +0000 Subject: [PATCH] trying to fix the DAV COPY failure issue over HTTP proxied of HTTPS --- codepot/docker/{readme.txt => README.md} | 3 +++ codepot/docker/httpd-fg.sh | 4 ++++ 2 files changed, 7 insertions(+) rename codepot/docker/{readme.txt => README.md} (60%) diff --git a/codepot/docker/readme.txt b/codepot/docker/README.md similarity index 60% rename from codepot/docker/readme.txt rename to codepot/docker/README.md index 2f3dd9f7..fd97385a 100644 --- a/codepot/docker/readme.txt +++ b/codepot/docker/README.md @@ -1,3 +1,6 @@ +If you require the root privilege to build a docker image, specify sudo in DOCKER. + make rocky8 DOCKER="sudo docker" + Run the service docker run -dit --restart unless-stopped --name codepot -p 7000:80 codepot:ubnt20.04 diff --git a/codepot/docker/httpd-fg.sh b/codepot/docker/httpd-fg.sh index 3c20ed57..ac989508 100755 --- a/codepot/docker/httpd-fg.sh +++ b/codepot/docker/httpd-fg.sh @@ -104,5 +104,9 @@ grep -F -q 'env[CODEPOT_CONFIG_FILE]' /etc/php-fpm.d/www.conf || { echo "Configuring to listen on the port [$SERVICE_PORT]" sed -r -i "s|^Listen[[:space:]]+.*|Listen ${SERVICE_PORT}|g" /etc/httpd/conf/httpd.conf +## Enable DAV to work with Apache running HTTP through SSL hardware (problem description) +## by replacing https: with http: in the Destination header: +##RequestHeader edit Destination ^https: http: early + php-fpm exec httpd -DFOREGROUND