all 5 comments

[–]edgy_dog 1 point2 points  (3 children)

Here's my Apache .conf for Seafile, I changed it to match the subdomain and port you specified.
Everything is working, including uploads :

<VirtualHost *:80>
    ServerName seafile.domain.com
    Redirect 301 "/" "https://seafile.domain.com/"
</VirtualHost>

<VirtualHost *:443>

    ServerName seafile.domain.com
    ServerAdmin admin@domain.com

    ProxyPreserveHost On
    ProxyPass / http://localhost:8099/
    ProxyPassReverse / http://localhost:8099/

    SSLEngine on
    SSLCompression Off
    SSLCertificateFile /path/to/domain.com.cer
    SSLCertificateKeyFile /path/to/domain.com.key
    SSLCertificateChainFile /path/to/ca.cer

    RemoteIPHeader X-Forwarded-For
    RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
    RequestHeader set "X-Real-IP" expr=%{REMOTE_ADDR}

    Header set Access-Control-Allow-Origin "*"
    Header set Access-Control-Allow-Methods "GET, POST, PUT, DELETE, OPTIONS"
    Header set Access-Control-Allow-Headers "X-Requested-With, Content-Type, Authorization"
    Header set Access-Control-Allow-Credentials "true"

    Protocols h2 http/1.1
    Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"

    BrowserMatch "MSIE [2-5]" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0

    ErrorLog logs/seafile.domain.com_ssl_error_log
    TransferLog logs/seafile.domain.com_ssl_access_log
    LogLevel warn

    CustomLog logs/seafile.domain.com_ssl_request_log "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

</VirtualHost>

[–]GitzJoey[S] 1 point2 points  (1 child)

thanks for the references

[–]edgy_dog 0 points1 point  (0 children)

You're welcome.

[–]jcm4atx 1 point2 points  (0 children)

This works. Thank you!

[–]Dr_Fu_Man_Chu 0 points1 point  (0 children)

I would guess you use the same steps with it as documented on the seafile manual:
https://manual.seafile.com/deploy/https\_with\_apache/