Wrong https configuration?

Hi,

I’m trying to setup seafile at htts://xxx.eu/seafile but I get only page with a list osf languages “Désolé, mais la page demandée est introuvable.”
If I click on a language (e.g. English), I get a 404 on htts://xxx.eu/i18n/?lang=en
It looks like the fact that I want seafile on htts://xxx.eu/seafile and not htts://xxx.eu/ is not taken into account…no clue why.

My config:

VirtualHost *:443>
ServerName xxx.eu
SSLEngine On
SSLCertificateFile /etc/letsencrypt/live/gnata.eu/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/gnata.eu/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/gnata.eu/chain.pem

Alias /seafmedia /home/xavier/myseafile/seafile-server-latest/seahub/media

<Location /seafmedia>
ProxyPass !
Require all granted

RewriteEngine On

ProxyPass /seafhttp http://127.0.0.1:8082
ProxyPassReverse /seafhttp http://127.0.0.1:8082
RewriteRule ^/seafhttp - [QSA,L]

SetEnvIf Request_URI . proxy-fcgi-pathinfo=unescape
SetEnvIf Authorization “(.*)” HTTP_AUTHORIZATION=$1
ProxyPass /seafile fcgi://127.0.0.1:8000/seafile

in seahub_settings.py
FILE_SERVER_ROOT = 'htts://xxx.eu/seafile/seafhttp
I tried
FILE_SERVER_ROOT = 'htts://xxx.eu//seafhttp
but it does not help.

in ccnet.conf
SERVICE_URL = htts://xxx.eu/seafile

Any ideas??
https -> htts to make the forum happy.

Check your seahub_settings.py:

FILE_SERVER_ROOT = 'https://xxx.eu/seafhttp'
MEDIA_URL = '/seafmedia/'
STATIC_URL = MEDIA_URL + '/assets/'
LOGIN_URL = '/seafile/accounts/login/'

Apache VHost (part for seafile):

RewriteEngine On
#
# seafile fileserver
#
ProxyPass /seafhttp http://127.0.0.1:8082
ProxyPassReverse /seafhttp http://127.0.0.1:8082
RewriteRule ^/seafhttp - [QSA,L]
#
# seahub
#
RewriteRule ^/(seafmedia.*)$ /$1 [QSA,L,PT]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/(seafile.*)$ /seahub.fcgi/$1 [QSA,L,E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

Start seafile with:

/home/seafile/seafile-server-latest/seafile.sh start
/home/seafile/seafile-server-latest/seahub.sh start-fastcgi

With your seahub_settings.py and you rewrite rules in the Vhost, I get a 404
The requested URL /seafile was not found on this server.

However, it works with

SetEnvIf Request_URI . proxy-fcgi-pathinfo=unescape
SetEnvIf Authorization “(.*)” HTTP_AUTHORIZATION=$1
ProxyPass /seafile fcgi://127.0.0.1:8000/seafile

and

FILE_SERVER_ROOT = ‘https://xxx.eu/seafhttp
SERVE_STATIC = False
MEDIA_URL = ‘/seafmedia/’
COMPRESS_URL = MEDIA_URL
STATIC_URL = MEDIA_URL + ‘assets/’
SITE_ROOT = ‘/seafile/’
LOGIN_URL = ‘/seafile/accounts/login/’

No clear idea why but it does work.

You got an 404 error because I used a different port (8082 vs. 8000) :wink:

I don’t get it.
seahub is running on 127.0.0.1:8000
and seafile listen on 8082.
It works with my config but not with the one you propose.

Actually, I’m following https://manual.seafile.com/deploy/deploy_seahub_at_non-root_domain.html which I overlooked. I was on the verge complaining that it is not well documented.