Hi,
I moved my Server from bare metal to Proxmox and would like to use Seafile with Apache2 and SSL again on Ubuntu 16.10.
I installed it like before and used the same parameters in all .conf files.
Here is the content of:
`[General]
USER_NAME = Seafile
ID = xyz
NAME = Seafile
SERVICE_URL = h*ttps://my-ip_com:8443
[Client]
PORT = 13419
[Database]
ENGINE = mysql
HOST = 127.0.0.1
PORT = 3306
USER = abc
PASSWD = password
DB = ccnet-db
CONNECTION_CHARSET = utf8
`
seahub_settings.py:
SECRET_KEY = “blabla”
FILE_PREVIEW_MAX_SIZE = 100 * 1024 * 1024
SERVE_STATIC = False
MEDIA_URL = ‘/media/’
SITE_ROOT = ‘/’
COMPRESS_URL = MEDIA_URL
STATIC_URL = MEDIA_URL + ‘assets/’
LOGIN_URL = ‘/accounts/login/’
FILE_SERVER_ROOT = ‘h*ttps://my-ip_com:8443/seafhttp’
DATABASES = {
‘default’: {
‘ENGINE’: ‘django.db.backends.mysql’,
‘NAME’: ‘seahub-db’,
‘USER’: ‘seafile’,
‘PASSWORD’: ‘passwd’,
‘HOST’: ‘127.0.0.1’,
‘PORT’: ‘3306’
}
}
and apache2 site-enabled 000.conf:
<VirtualHost *:8443>
ServerName my-ip_com
DocumentRoot /var/www
SSLEngine On
SSLCertificateFile /home/me/cacert.pem
SSLCertificateKeyFile /home/me/privkey.pem
Alias /media /home/me/seafile/installed/seafile-server-latest/seahub/media
# <Location /media>
# Order allow,deny
# Allow from all
#
<Location /media>
ProxyPass !
Require all granted
RewriteEngine On
seafile fileserver
ProxyPass /seafhttp http://127.0.0.1:8082
ProxyPassReverse /seafhttp http://127.0.0.1:8082
RewriteRule ^/seafhttp - [QSA,L]
<Location /seafhttp>
Order allow,deny
Allow from all
seahub
# SetEnvIf Request_URI . proxy-fcgi-pathinfo=unescape
# SetEnvIf Authorization “(.*)” HTTP_AUTHORIZATION=$1
# ProxyPass / fcgi://127.0.0.1:8000/
SetEnvIf Request_URI . proxy-fcgi-pathinfo=unescape
SetEnvIf Authorization “(.*)” HTTP_AUTHORIZATION=$1
ProxyPass / fcgi://127.0.0.1:8000/
# RewriteRule ^/(media.*)$ /$1 [QSA,L,PT]
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteRule ^(.*)$ /seahub.fcgi/$1 [QSA,L,E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
any ideas? I forwarded the port 8443 and 8000 to the VM.
Both apache2 and seafile error logs are empty…
ps: h*ttp and me_com is because i’m not allowed to post links as a newbie…