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.
This commit is contained in:
2016-08-17 08:30:26 +02:00
parent 91aedf1a89
commit cd67b5d03a

View File

@@ -1,7 +1,9 @@
<VirtualHost *:80>
# 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
</Files>
</Directory>
</VirtualHost>
# 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]
</VirtualHost>