HTTPS gives a blank empty page

2,100 views
Skip to first unread message

Viktor Lindgren

unread,
Feb 2, 2013, 11:15:24 AM2/2/13
to sea...@googlegroups.com
I use the 1.4.5, released recently

I followed https://github.com/haiwen/seafile/wiki/Enable-Https-on-Seafile-web
but all i get is a blank, empty page, when visiting https://host:8082

Also, i would like to know if i can force to use http in the config.

I would like to thank to all your great work you put in to this project!

ZhengXie

unread,
Feb 2, 2013, 11:28:35 AM2/2/13
to sea...@googlegroups.com
Hi,

On Feb 3, 2013, at 12:15 AM, Viktor Lindgren <vkg.li...@gmail.com> wrote:

I use the 1.4.5, released recently

I followed https://github.com/haiwen/seafile/wiki/Enable-Https-on-Seafile-web
but all i get is a blank, empty page, when visiting https://host:8082

When you see a blank page, means your seafile httpserver is working. Httpserver is a file server for seafile, you don't need to visit https://host:8082 directly, when httpserver is up, you can download/upload files in libraries. 



Also, i would like to know if i can force to use http in the config.

I would like to thank to all your great work you put in to this project!


Seafile use http by default, you can also set https=false in httpserver section in seafile-data/seafile.conf to disable https.

Viktor Lindgren

unread,
Feb 2, 2013, 11:47:36 AM2/2/13
to sea...@googlegroups.com
Hi

I thought i would see the exact same page as on port 8000, so that when i login with my email and password it would be sent encrypted.


"Also, i would like to know if i can force to use http in the config."

I meat of course https, that is encrypted. Sorry.

Viktor Lindgren

unread,
Feb 2, 2013, 12:03:53 PM2/2/13
to sea...@googlegroups.com
I think i understand now, setting https=true does not mean both seahub and seafile use https.

I must combine that with the nginx server.
Message has been deleted

distillvide...@gmail.com

unread,
Feb 17, 2013, 1:21:30 AM2/17/13
to sea...@googlegroups.com
I'm confused by this as well. I'm getting a white page too. How do you get the web server to do https? Does this require some separate setup on the Apache or Nginx web server? 

On Saturday, February 16, 2013 11:19:12 PM UTC-7, distillvide...@gmail.com wrote:

Viktor Lindgren

unread,
Feb 17, 2013, 2:05:35 AM2/17/13
to sea...@googlegroups.com
First i did change in ~/haiwen/seafile-data/seafile.conf to

[httpserver]
port=8082
https=true
pemfile=/pathto/haiwen/ssl/cacert.pem
privkey=/pathto/haiwen/ssl/privkey.pem

The keys mentions above was generate by openssl.

Then i setup apache to serve the actual page using https by doing this

<IfModule mod_ssl.c>
    Listen 12345
<VirtualHost *:12345>
   ServerName seafile.example.com
   DocumentRoot /pathto/haiwen/seafile-server-1.4.5/seahub

ErrorLog /var/log/apache2/seafile.error.log
        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog /var/log/apache2/seafile.access.log combined
        ServerSignature On


      SSLEngine on
      SSLCertificateFile    /etc/ssl/certs/ssl-cert-snakeoil.pem
      SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key


  Alias /media  /pathto/haiwen/seafile-server-1.4.5/seahub/media
  RewriteEngine On
  RewriteRule ^/(media.*)$ /$1 [QSA,L,PT]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^/(.*)$ /seahub.fcgi/$1 [QSA,L,E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] # HTTP_AUTHORIZATION is used in API authorization

  FastCGIExternalServer /pathto/haiwen/seafile-server-1.4.5/seahub/seahub.fcgi -host 127.0.0.1:8000
</VirtualHost>
</IfModule>

For this i needed fastcgi module.
apt-get install libapache2-mod-fastcgi
a2enmod fastcgi

--
You received this message because you are subscribed to the Google Groups "seafile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to seafile+u...@googlegroups.com.
To post to this group, send email to sea...@googlegroups.com.
Visit this group at http://groups.google.com/group/seafile?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

ZhengXie

unread,
Feb 17, 2013, 3:05:24 AM2/17/13
to sea...@googlegroups.com
Your configuration seems correct, can you visit https://seafile.example.com ?

Seafile httpserver handles file upload/download for  seahub. Seahub is a web front end for seafile.

In order to enable https for seahub, you need config apache/nginx to enable https. When you've set up seahub with https correctly, you will be able to visit https://seafile.example.com except that downloading/uploading file on seahub is still in http,  so you need to change seafile.conf to enable https for httpserver (as you did).

Viktor Lindgren

unread,
Feb 17, 2013, 3:16:16 AM2/17/13
to sea...@googlegroups.com
Yes, my works.

It was a answer to distillvide...@gmail.com how i solved it inorder to help.

2013/2/17 ZhengXie <seafi...@gmail.com>

distillvide...@gmail.com

unread,
Feb 17, 2013, 12:42:33 PM2/17/13
to sea...@googlegroups.com
Thank you very much for the sample code and quick response. I'm going to try the setup and see if I meet with success. Much appreciated. 

distillvide...@gmail.com

unread,
Feb 17, 2013, 12:47:40 PM2/17/13
to sea...@googlegroups.com
Thanks for writing back and adding some clarification here. I think the disconnect is realizing that https for Seahub (on Apache or Nginx) is separate from https for httpserver. 

Can we generate a similar example configuration for Nginx? I think it would be very useful for newbies and prototypers. 

Many thanks! From what I've seen so far this is a wonderful piece of software. 

Viktor Lindgren

unread,
Feb 17, 2013, 1:13:25 PM2/17/13
to sea...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages