1. Yep, same host.. all on a single VPS.
2. 500 Internal Server Error
On Thu Aug 14 20:29:46 2014, Shuai Lin wrote:
> 1. Are https://[redacted]/seafhttp/upload-aj/011b6ef6 and
> https://[redacted]/seafile using the same host?
> 2. Try to visit the page https://[redacted]/seafhttp, what does the
> browser show?
>
>
> On Fri, Aug 15, 2014 at 9:25 AM, Brandon Harris
> <
brandon...@gmail.com <mailto:
brandon...@gmail.com>> wrote:
>
> Thanks.. F12 on the mac didn't work, but I think this is the
> console output you wanted.. View/Developer/Dev Tools/Console
>
> |
> Failedto load resource:net::ERR_INSECURE_RESPONSE
> https://[redacted]/seafhttp/upload-aj/011b6ef6
> |
>
>
> sounds like it might be an HTTPS config issue?
>
>
> On Thursday, August 14, 2014 8:21:07 PM UTC-5, Shuai Lin wrote:
>
> Your config looks fine. When Chrome shows "Error: can not
> connect to the server", can you open the chrome debug console
> (just press F12 in Chrome), and check the details of error
> message there?
>
>
>
> On Fri, Aug 15, 2014 at 2:16 AM, Brandon Harris
> <
brandon...@gmail.com> wrote:
>
> Uploading a file via the client (windows and mac tested)
> works fine. When using the browser (Chrome) I get the
> following error ' Error: can not connect to the server'
>
> * Ubuntu 14 LTS - nginx web server, redirecting http to
> https.
> * Brand new VPS, no space/quota issues
> * Files being tested are all under 1MB in size.
>
>
>
> *seafile.conf*
> [network]
> port = 12001
>
> [fileserver]
> host = 127.0.0.1--added this in trying to fix the issue
> port = 8082
>
> [database]
> type = mysql
> host = 127.0.0.1
> port = 3306
> user = root
> password = [x]
> db_name = seafile-db
> connection_charset = utf8
>
> *ccnet.conf*
> [General]
> USER_NAME = vaughn
> ID = f7b87bd597be78c1407072e602c3a7__01bbe22129
> NAME = vaughn
> SERVICE_URL = https://[redacted]/seafile
>
> [Network]
> PORT = 10001
>
> [Client]
> PORT = 13418
>
> [Database]
> ENGINE = mysql
> HOST = 127.0.0.1
> PORT = 3306
> USER = root
> PASSWD = [x]
> DB = ccnet-db
> CONNECTION_CHARSET = utf8
>
> *seahub_settings.py*
> SECRET_KEY = [redacted]
> SERVE_STATIC=False
> MEDIA_URL='/seafmedia/'
> SITE_ROOT= '/seafile/'
> FILE_SERVER_ROOT= 'https://[redacted]/seafhttp'
> HTTP_SERVER_ROOT='https://[__redacted]/seafhttp'--added
> this to test resolving the issue
>
> DATABASES = {
> 'default': {
> 'ENGINE': 'django.db.backends.mysql',
> 'NAME': 'seahub-db',
> 'USER': 'root',
> 'PASSWORD': [x],
> 'HOST': '127.0.0.1',
> 'PORT': '3306',
> 'OPTIONS': {
> 'init_command': 'SET storage_engine=INNODB',
> }
> }
> }
>
> */etc/nginx/sites-available/__seafile*
> server {
> listen 80;
> server_name [redacted];
> rewrite ^ https://$http_host$request___uri?
> permanent; # force redirect http to https
> }
>
> server {
> listen 443;
> server_name [redacted];
> ssl on;
> ssl_certificate /etc/nginx/certs/cacert.pem; #
> path to your cacert.pem
> ssl_certificate_key /etc/nginx/certs/privkey.pem;
> # path to your privkey.pem
> location /seafile {
>
>
> fastcgi_pass
127.0.0.1:8000
> <
http://127.0.0.1:8000>;
> fastcgi_param SCRIPT_FILENAME
> $document_root$fastcgi_script___name;
> fastcgi_param PATH_INFO
> $fastcgi_script_name;
>
> fastcgi_param SERVER_PROTOCOL
> $server_protocol;
> fastcgi_param QUERY_STRING $query_string;
> fastcgi_param REQUEST_METHOD $request_method;
> fastcgi_param CONTENT_TYPE $content_type;
> fastcgi_param CONTENT_LENGTH $content_length;
> fastcgi_param SERVER_ADDR $server_addr;
> fastcgi_param SERVER_PORT $server_port;
> fastcgi_param SERVER_NAME $server_name;
> fastcgi_param HTTPS on; # enable
> this line only if https is used
> access_log /var/log/nginx/seahub.access.__log;
> error_log /var/log/nginx/seahub.error.__log;
> }
>
>
>
> location /seafhttp {
> rewrite ^/seafhttp(.*)$ $1 break;
> proxy_pass
http://127.0.0.1:8082;
> client_max_body_size 0;
> }
>
> location /seafmedia {
> rewrite ^/seafmedia(.*)$ /media$1 break;
> root
> /home/brandon/seafile/seafile-__server-latest/seahub;
> }
> }
>
>
> --
> 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.
>
http://groups.google.com/__group/seafile
> <
http://groups.google.com/group/seafile>.
> For more options, visit
>
https://groups.google.com/d/__optout
> <
https://groups.google.com/d/optout>.
>
>
> --
> 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
> <mailto:
seafile+u...@googlegroups.com>.
> <mailto:
sea...@googlegroups.com>.
> You received this message because you are subscribed to a topic in the
> Google Groups "seafile" group.
> To unsubscribe from this topic, visit
>
https://groups.google.com/d/topic/seafile/eZJb0YNN0E0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
>
seafile+u...@googlegroups.com
> <mailto:
seafile+u...@googlegroups.com>.
> <mailto:
sea...@googlegroups.com>.