Hi there,
I tried to setup Seafile via NGINX and SSL on a non-standard SSL port. However I am running into some problems.
Symptom: The login-page is working perfectly over SSL, however after I hit the "Submit" button I get a 400 Bad Request page, since it tries to load the next page over an ordinary http request, although on the SSL port which is of course failing.
Everything should be running on port 8884. I don't want to use any other port (so no port 80, no port 433, no nothing).
Problem illustrated:
Any ideas whats causing this?
Here are my config files:
NGINX:
server {
listen 8884; ## listen for ipv4
server_name XXX.XXX.XXX.XXX;
ssl on;
ssl_certificate /etc/ssl.crt/seafile.crt;
ssl_certificate_key /etc/ssl.key/seafile.pem;
access_log /var/log/nginx/localhost.access.log;
location / {
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;
access_log /var/log/nginx/seahub.access.log;
error_log /var/log/nginx/seahub.error.log;
}
location /seafhttp {
rewrite ^/seafhttp(.*)$ $1 break;
client_max_body_size 0;
}
location /media {
root /home/seafile/secustore/seafile-server-2.0.4/seahub;
}
fastcgi_param HTTPS on;
fastcgi_param HTTP_SCHEME https;
}
ccnet.conf:
seahub_settings.py: