I tried this myself now and a separate hostname for the fileserver works just fine.
However I could not get the FastCGI version of seahub running, it just repeatedly redirects to the login page until the browser stops due to too many redirects.
The apache config looks like this:
FastCGIExternalServer /var/www/seahub.fcgi -host 127.0.0.1:8000
# in virtual host:
RewriteRule ^(.*)$ /seahub.fcgi$1 [QSA,L,E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
It looks like seahub extracts the path from the script-name or something? At least it does not finds its way into seahub.
I am running seafile 2.0.1 on debian wheezy.
My configuration for the working reverse-proxy version: (omitting log files)
VirtualHost { # seahub proxy
Hostname = cloud.domain.tld
WebsiteRoot = /home/website/cloud.domain.tld/www
SSLcertFile = /etc/hiawatha/cert/cloud.domain.tld/cloud.domain.tld.pem
RequireSSL = true
ReverseProxy .* http://127.0.0.1:8000
}
And the currently not working Fast-CGI version: (you have to start seahub using ./seahub.sh start-fastcgi)
VirtualHost { # seahub fastcgi
Hostname = cloud.domain.tld
WebsiteRoot = /home/website/cloud.domain.tld/www
SSLcertFile = /etc/hiawatha/cert/cloud.domain.tld/cloud.domain.tld.pem
RequireSSL = true
UseToolkit = seahub
}
FastCGIserver {
FastCGIid = seahub
ConnectTo = 127.0.0.1:8000
}
UrlToolkit {
ToolkitID = seahub
Match .* UseFastCGI seahub
}
The file server is the same in both cases:
VirtualHost { # seahub files
Hostname = files.cloud.domain.tld
WebsiteRoot = /home/website/cloud.domain.tld/www
SSLcertFile = /etc/hiawatha/cert/files.cloud.domain.tld/files.cloud.domain.tld.pem
RequireSSL = true
ReverseProxy .* http://127.0.0.1:8082 3600
}