Hello,
I have installed Seafile recently and it's a great piece of software, much needed, so first of all thanks to the developers.
My first install was the standard one, on port 8000 of an HTTP website without even using Apache (server: 3.1.6 on Debian 6; client: seaf-cli on Gentoo). It worked perfectly.
Then I decided that I would like to have my communications encrypted and tried to migrate the install to an HTTPS website. However, I only have one IP available on my remote server, and I already have other HTTPS services, and as you may know there is not a real way to have name-based virtual hosts under HTTPS, so my only option is to install Seafile in a subdirectory of my single HTTPS website, e.g.
http://ssl.mydomain.com/seafile/ .
There is no real documentation for this in the manual, so I tried to fix the settings given in the manual, and this is what I came up with:
- in apache2.conf:
Alias /media /opt/seafile/seafile-server-latest/seahub/media
RewriteEngine On
#
# seafile fileserver
#
RewriteRule ^/seafile/seafhttp - [QSA,L]
#
# seahub
#
# RewriteRule ^/seafile/(media.*)$ /$1 [QSA,L,PT]
RewriteRule ^/(media.*)$ /$1 [QSA,L,PT]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/seafile(/.*)$ /seafile/seahub.fcgi$1 [QSA,L,E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
- in ccnet.conf:
- in seahub_settings.py:
This almost works... but doesn't work. I can load Seafile's web interface at
https://ssl.mydomain.com/seafile/ , but though graphics (logo, header and footer) are ok, in place of my content I get the Italian equivalent a "Sorry, page not found" message. Same happens if I click on "my homepage".
which apparently is ok, but then comes a series of subrequests for /, /index.html, /index.cgi etc (looking for the directory index) which of course are not picked up by the rewrite rules and end up in a page not found. Perhaps Seafile should rather do these subrequests for something under /seafile/ ?
Is what I am trying to do possible at all? Otherwise it doesn't seem possible to run Seafile under HTTPS unless you can have a dedicated IP for this service, which is not an easy requirement for personal/small office usage.
Also, there are a couple other issues that I noticed:
1) Even if I set SITE_ROOT etc, all media links in the page still point at /media rather than at /seafile/media as I'd like.
2) In several places (e.g. the reports on new uploads in the Web interface for a library, or logs/seahub_django_request.log) times are given in Chinese time rather than in my local time.
Any help for my main task would be much appreciated.
Thanks,