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:
@@ -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>
|
||||
|
Reference in New Issue
Block a user