- seahub启用fastcgi:
- 需要a2enmod proxy_fcgi
- /etc/apache2/sites-enabled/000-default.conf里修改seahub的反向代理的协议类型为fcgi
ProxyPass / fcgi://127.0.0.1:8000/
ProxyPassReverse / fcgi://127.0.0.1:8000/
- 目录名有空格导致能上传无法下载:
- /etc/apache2/sites-enabled/000-default.conf里seahub的配置项增加一项:
SetEnvIf Request_URI . proxy-fcgi-pathinfo=unescape
- 外网和内网访问:
- ccnet.conf里:
SERVICE_URL = https://域名 - seahub_settings.py里:
FILE_SERVER_ROOT = ‘https://域名:路由器端口映射号/seafhttp’
假设路由器设置了公网地址:1234转内网地址端口:443,那么这里端口号填1234.