Seafile (FastCGI Mode) with an external Apache Server

290 views
Skip to first unread message

jkp...@ucdavis.edu

unread,
Mar 10, 2014, 3:25:09 PM3/10/14
to sea...@googlegroups.com
Hi Everyone,

I'm looking to run the seafile server behind a separate Apache server.  I run seahub in the fastcgi mode.  However, when try to connect, fastcgi on my apache server gives a connection refused error. (using the FastCGIExternalServer /var/www/html/seahub.fcgi -host <seafile-server-ip>:8000)

Is this an Apache issue?  Or is there another configuration I need to modify in Seafile to make this work?

Thanks!

Lingtao Pan

unread,
Mar 11, 2014, 8:18:34 AM3/11/14
to sea...@googlegroups.com
Hi,

find the following function in seahub.sh

function start_seahub_fastcgi () {
    before_start;
    echo "Starting seahub (fastcgi) at port ${port} ..."
    $PYTHON "${manage_py}" runfcgi host=127.0.0.1 port=$port pidfile=$pidfile \
        outlog=${accesslog} errlog=${errorlog}

    # Ensure seahub is started successfully
    sleep 5
    if ! pgrep -f "${manage_py}" 1>/dev/null; then
        printf "\033[33mError:Seahub failed to start.\033[m\n"
        exit 1;
    fi
}

Change host=127.0.0.1 to 0.0.0.0

Andreas Brandenborg

unread,
Jul 28, 2016, 12:14:47 PM7/28/16
to seafile
THANK YOU! That fixed my problem I was experiencing. Thank you!
Reply all
Reply to author
Forward
0 new messages