Hi, I recently installed seafile CE following the official guide: HTTPS with Apache - Seafile Admin Manual
I used apache, certbot and everything is working, except that I cannot upload anything,
checking the logs in /var/log/apache2/seafile.access.log I found a 404 error:
"GET /seafhttp/protocol-version HTTP/1.1" 404 13508 "-" "Seafile/8.0.8 (Windows NT)"
And I cannot find any useful info in internet
this is apache configuration of
seafile.conf
<VirtualHost *:80>
ServerName seafile.millionairein10years.com
DocumentRoot /var/www
Alias /media /opt/seafile/seafile-server-latest/seahub/media
AllowEncodedSlashes On
RewriteEngine On
<Location /media>
Require all granted
</Location>
# proxy config for seafile seahub
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:8000/
ProxyPassReverse / http://127.0.0.1:8000/
# proxy config for seafile fileserver
ProxyPass /seafhttp http://127.0.0.1:8082
ProxyPassReverse /seafhttp http://127.0.0.1:8082
RewriteRule ^/seafhttp - [QSA,L]
ErrorLog ${APACHE_LOG_DIR}/seafile.error.log
CustomLog ${APACHE_LOG_DIR}/seafile.access.log combined
RewriteCond %{SERVER_NAME} =seafile.millionairein10years.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>
and seafile-le-ssl.conf (automatically created by certbot)
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName seafile.millionairein10years.com
DocumentRoot /var/www
Alias /media /opt/seafile/seafile-server-latest/seahub/media
AllowEncodedSlashes On
RewriteEngine On
<Location /media>
Require all granted
</Location>
# proxy config for seafile seahub
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:8000/
ProxyPassReverse / http://127.0.0.1:8000/
# proxy config for seafile fileserver
ProxyPass /seafhttp http://127.0.0.1:8082
ProxyPassReverse /seafhttp http://127.0.0.1:8082
RewriteRule ^/seafhttp - [QSA,L]
ErrorLog ${APACHE_LOG_DIR}/seafile.error.log
CustomLog ${APACHE_LOG_DIR}/seafile.access.log combined
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/seafile.millionairein10years.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/seafile.millionairein10years.com/privkey.pem
</VirtualHost>
</IfModule>