Ask Your Question

Revision history [back]

This is somehow unrelated to Sage, you need to have a webserver listening on port 80 that forwards to port 443.

For example, if you are running nginx, you can add the following in your configuration:

server {
    server_name your_hostname.net ;
    listen 80;
    location '/' {
        return 301 https://$server_name$request_uri;
    }
}

This is somehow unrelated to Sage, you need to have a webserver listening on port 80 that forwards to port 443.

For example, if you are running nginx, you can add the following in your configuration:

server {
    server_name your_hostname.net ;
    listen 80;
80 ;
    location '/' {
        return 301 https://$server_name$request_uri;
https://$server_name$request_uri ;
    }
}

We use that for the site ask.sagemath.org ;)