Hello everyone,
I have some troubles with Seafile 7.0.4 on my Raspberry Pi 3. Seafile works flawless, execpt when I’m trying to Downoad files over the Webinterface or the iOS app.
When I try to download a file (http ://192.168.178.41:8000/seafhttp/files/3406be0a-3d9b-4b3e-9a75-a7923cfc25b0/seafile-tutorial.doc) Seafile displays:
Sorry, but the requested page could not be found.
I really tried hours to fix it but I don’t get it working. I think it is just a small configuration error. I hope someone can help me
Seafile runs on Port :8000 over apache2, Port :80 is used by Baikal. I only want to accses Seafile over my local LAN.
/etc/apache2/sites-enabled/000-default.conf:
<VirtualHost *:80>
ServerName 192.168.178.41
ServerAdmin webmaster@localhost
DocumentRoot /var/www/baikal/htmlErrorLog ${APACHE_LOG_DIR}/error.log #CustomLog ${APACHE_LOG_DIR}/access.log combined RewriteEngine on RewriteRule /.well-known/carddav /dav.php [R,L] RewriteRule /.well-known/caldav /dav.php [R,L] #RewriteCond %{SERVER_NAME} =192.168.178.41 #RewriteRule ^ http://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent] <Directory "/var/www/baikal/html"> Options None Options +FollowSymlinks AllowOverride All # Confiugration for apache-2.4: Require all granted </Directory>
<VirtualHost *:8000>
ServerName 192.168.178.41
DocumentRoot /var/www
Alias /media /home/user/haiwen/seafile-server-latest/seahub/mediaRewriteEngine On <Location /media> Require all granted </Location> # seafile fileserver ProxyPass /seafhttp http://127.0.0.1:8082 ProxyPassReverse /seafhttp http://127.0.0.1:8082 RewriteRule ^/seafhttp - [QSA,L] # seahub SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1 ProxyPreserveHost On ProxyPass / http://127.0.0.1:8000/ ProxyPassReverse / http://127.0.0.1:8000/
/home/seafile/conf/seahub_settings.py:
SECRET_KEY = “…”
FILE_SERVER_ROOT = ‘http ://192.168.178.41/seafhttp’
DATABASES = {
‘default’: {
‘ENGINE’: ‘django.db.backends.mysql’,
‘NAME’: ‘seahub-db’,
‘USER’: ‘…’,
‘PASSWORD’: ‘…’,
‘HOST’: ‘127.0.0.1’,
‘PORT’: ‘3306’
}
}
/home/seafile/conf/seahub_settings.py:
[General]
USER_NAME = seafile
ID = …
NAME = seafile
SERVICE_URL = h_ttp://192.168.178.41:8000 [means http in config][Client]
PORT = 13419[Database]
ENGINE = mysql
HOST = 127.0.0.1
PORT = 3306
USER = …
PASSWD = …
DB = ccnet-db
CONNECTION_CHARSET = utf8