【问题标题】:Apache: Install Baikal besides SeafileApache:在 Seafile 之外安装 Baikal
【发布时间】:2023-12-22 02:04:01
【问题描述】:

我需要一个提示,我应该在哪个方向上寻找答案。

我已经建立了一个可以在https://subdomain.no-ip.org下访问的Seafile服务器,我现在希望在https://subdomain.no-ip.org/baikal下可以访问贝加尔湖

但是,我无法让它运行,因为我总是从 Seafile 收到一条消息,指出该目录不存在。 (我猜 seafile 认为它应该是一个子目录)

我最近尝试配置 apache - 启用站点/默认 SSL

<VirtualHost *:443>
    ServerAdmin webmaster@localhost
    Servername gasslnet.no-ip.org
    DocumentRoot /var/www
    Alias /media /home/andie/seafile-directory/seafile-server-latest/seahub$
    <Directory />
            Options FollowSymLinks
            AllowOverride None
    </Directory>
    <Directory /var/www/>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride None
            Order allow,deny
            allow from all
    </Directory>

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
            AllowOverride None
            Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
            Order allow,deny
            Allow from all
    </Directory>

    <Directory "/var/www/baikal/html">
            Options Indexes FollowSymLinks MultiViews
            AllowOverride None
            Order allow,deny
            allow from all
    </Directory>

我的 Seafile 设置:

ccnet/ccnet.conf

SERVICE_URL = https://subdomain.no-ip.org

seahub_settings.py

FILE_SERVER_ROOT = 'http://subdomain.no-ip.org/seafhttp'

我认为问题出在 seafile 配置中,如果可以在 url/seafile 下访问 seafile 而不仅仅是 url,则应该解决问题。我尝试更改 SERVICE_URL,但没有效果。

你对此有什么想法吗?

【问题讨论】:

标签: apache virtualhost seafile-server


【解决方案1】:

你必须设置

SITE_ROOT = '/seafile'

在seahub_settings.py下访问Seafile

http://subdomain.no-ip.org/seafile

【讨论】: