From cd67b5d03ab40dc3a368cd8b68f3cb0879fd8bd8 Mon Sep 17 00:00:00 2001 From: Francesco Siddi Date: Wed, 17 Aug 2016 08:30:26 +0200 Subject: [PATCH] Add more XSendFilePath, plus url rewrite to support legacy address We are going to deprecate cloudapi.blender.org in favour of cloud.blender.org/api in the future. --- docker/3_run/000-default.conf | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/docker/3_run/000-default.conf b/docker/3_run/000-default.conf index 80a9f17..facfd1c 100644 --- a/docker/3_run/000-default.conf +++ b/docker/3_run/000-default.conf @@ -1,7 +1,9 @@ # EnableSendfile on XSendFile on - XSendFilePath /data/storage/cloud + XSendFilePath /data/storage/pillar + XSendFilePath /data/git/pillar + XsendFilePath /data/git/blender-cloud ServerAdmin webmaster@localhost DocumentRoot /var/www/html @@ -26,5 +28,10 @@ Require all granted - + # Temporary edit to remap the old cloudapi.blender.org to cloud.blender.org/api + RewriteEngine On + RewriteCond "%{HTTP_HOST}" "^cloudapi\.blender\.org" [NC] + RewriteRule (.*) /api$1 [PT] + +