2016-08-10 18:27:27 +02:00
|
|
|
<VirtualHost *:80>
|
|
|
|
XSendFile on
|
2016-08-17 08:30:26 +02:00
|
|
|
XSendFilePath /data/storage/pillar
|
2018-02-14 11:07:47 +01:00
|
|
|
XSendFilePath /data/git/pillar/pillar/web/static/
|
2017-03-08 13:02:36 +01:00
|
|
|
XSendFilePath /data/git/attract/attract/static/
|
|
|
|
XSendFilePath /data/git/flamenco/flamenco/static/
|
2017-12-08 17:06:56 +01:00
|
|
|
XsendFilePath /data/git/pillar-svnman/svnman/static/
|
2018-02-14 11:07:47 +01:00
|
|
|
XsendFilePath /data/git/blender-cloud/static/
|
|
|
|
XsendFilePath /data/git/blender-cloud/cloud/static/
|
2016-08-10 18:27:27 +02:00
|
|
|
|
|
|
|
ServerAdmin webmaster@localhost
|
|
|
|
DocumentRoot /var/www/html
|
|
|
|
|
|
|
|
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
|
|
|
|
# error, crit, alert, emerg.
|
|
|
|
# It is also possible to configure the loglevel for particular
|
|
|
|
# modules, e.g.
|
|
|
|
# LogLevel info ssl:warn
|
|
|
|
|
|
|
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
|
|
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
|
|
|
|
2017-09-14 17:17:45 +02:00
|
|
|
WSGIDaemonProcess cloud processes=2 threads=32 maximum-requests=10000
|
2016-08-10 18:27:27 +02:00
|
|
|
WSGIPassAuthorization On
|
|
|
|
|
|
|
|
WSGIScriptAlias / /data/git/blender-cloud/runserver.wsgi \
|
|
|
|
process-group=cloud application-group=%{GLOBAL}
|
|
|
|
|
|
|
|
<Directory /data/git/blender-cloud>
|
|
|
|
<Files runserver.wsgi>
|
|
|
|
Require all granted
|
|
|
|
</Files>
|
|
|
|
</Directory>
|
|
|
|
|
2016-08-17 08:30:26 +02:00
|
|
|
# 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]
|
|
|
|
|
2017-06-02 11:18:57 +02:00
|
|
|
# Redirects for blender-cloud projects
|
|
|
|
RewriteRule "^/p/blender-cloud/?$" "/blog" [R=301,L]
|
|
|
|
RewriteRule "^/agent327/?$" "/p/agent-327" [R=301,L]
|
|
|
|
RewriteRule "^/caminandes/?$" "/p/caminandes" [R=301,L]
|
|
|
|
RewriteRule "^/cf2/?$" "/p/creature-factory-2" [R=301,L]
|
|
|
|
RewriteRule "^/characters/?$" "/p/characters" [R=301,L]
|
|
|
|
RewriteRule "^/gallery/?$" "/p/gallery" [R=301,L]
|
|
|
|
RewriteRule "^/hdri/?$" "/p/hdri" [R=301,L]
|
|
|
|
RewriteRule "^/textures/?$" "/p/textures" [R=301,L]
|
2017-07-26 16:51:35 +02:00
|
|
|
RewriteRule "^/training/?$" "/courses" [R=301,L]
|
2017-10-25 15:52:33 +02:00
|
|
|
RewriteRule "^/spring/?$" "/p/spring" [R=301,L]
|
2018-03-14 14:35:12 +01:00
|
|
|
RewriteRule "^/hero/?$" "/p/hero" [R=301,L]
|
2018-03-19 11:17:45 +01:00
|
|
|
# Waking the forest was moved from the art gallery to its own workshop
|
|
|
|
RewriteRule "^/p/gallery/58cfec4f88ac8f1440aeb309/?$" "/p/waking-the-forest" [R=301,L]
|
2016-08-17 08:30:26 +02:00
|
|
|
</VirtualHost>
|