Problem by deploying seafile in a subfolder with apache


#1

sorry for my english, so i can’t manage to work seafile server in subdomain /seafile.
I use apache2, config all how written in manual for non-root subdomain, i have this error
Gateway Timeout
The gateway did not receive a timely response from the upstream server or application.

Apache Server at 192.168.2.10 Port 80
and apache log

[Sun Nov 04 19:27:19.459460 2018] [mpm_prefork:notice] [pid 7072] AH00169: caught SIGTERM, shutting down
[Sun Nov 04 19:27:19.677173 2018] [:notice] [pid 7675] FastCGI: process manager initialized (pid 7675)
[Sun Nov 04 19:27:19.705626 2018] [wsgi:warn] [pid 7673] mod_wsgi: Compiled for Python/2.7.8.
[Sun Nov 04 19:27:19.705630 2018] [wsgi:warn] [pid 7673] mod_wsgi: Runtime using Python/2.7.9.
[Sun Nov 04 19:27:19.712814 2018] [mpm_prefork:notice] [pid 7673] AH00163: Apache/2.4.27 (Debian) mod_fastcgi/mod_fastcgi-SNAP-0910052141 mod_fcgid/2.3.9 OpenSSL/1.0.2o mod_wsgi/4.3.0 Python/2.7.9 configured – resuming normal operations
[Sun Nov 04 19:27:19.712860 2018] [core:notice] [pid 7673] AH00094: Command line: ‘/usr/sbin/apache2’
[Sun Nov 04 19:32:24.742618 2018] [proxy_fcgi:error] [pid 7678] (70007)The timeout specified has expired: [client 192.168.2.19:60141] AH01075: Error dispatching request to : (polling)


Redirect http-https
#2

FastCGI is deprecated and doesn’t work anymore. You have to use WSGI.
https://manual.seafile.com/deploy/deploy_with_apache.html


#3

when i config without subdomain it works, but when use subdomain it doesn’t


#4

Can you please post your config?


#5

ccnet.conf:

USER_NAME = Kabinet
ID = ***
NAME = Kabinet
SERVICE_URL = http://kabinet56.ru/seafile

[Client]
PORT = 13419

[Database]
ENGINE = mysql
HOST = 127.0.0.1
PORT = 3306
USER = seafile
PASSWD = *********
DB = ccnet-db
CONNECTION_CHARSET = utf8

seahub_settings.py:

SECRET_KEY = ""
SERVE_STATIC = False
MEDIA_URL = ‘/seafmedia/’
COMPRESS_URL = MEDIA_URL
STATIC_URL = MEDIA_URL + ‘assets/’
SITE_ROOT = ‘/seafile/’
LOGIN_URL = ‘/seafile/accounts/login/’
FILE_SERVER_ROOT = ‘http://kabinet56.ru/seafhttp
DATABASES = {
‘default’: {
‘ENGINE’: ‘django.db.backends.mysql’,
‘NAME’: ‘seahub-db’,
‘USER’: '
’,
‘PASSWORD’: ‘******’
‘HOST’: ‘127.0.0.1’,
‘PORT’: ‘3306’

Apache:

Alias /seafmedia /home/ubuntu/seafile-server-latest/seahub/media

<Location /seafmedia>
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]

seahub

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


#6

I just realized you mean deploy seafile in a subfolder than at a a Subdomain. Plaese change the title to “Problem by deploying seafile in a subfolder with apache”