Ask Your Question

HTTPS for Sage Webserver?

asked 2011-10-09 13:48:06 +0200

Rubin gravatar image

I want to use Sage on my work computer, but it runs Windows and is locked down by an IT department which is not interested in installing new software, regardless of potential utility. It looks like my only option, then, is to install Sage on my home Ubuntu 10.04 server and then access it through HTTP.

I've followed Jason Grout's procedure at, and it works well. However, I was wondering:

  1. Would it be prudent to set up Sage/Apache to work over HTTPS instead of HTTP, or am I just being paranoid?
  2. If the consensus is that HTTPS is a good idea, could someone point me to some resources on configuring Sage and Apache for HTTPS? (If it helps in selecting resources, I have experience administering and using various distros of Linux on workstations for about 15 years, but know next to nothing about setting up a web server.)
  3. A side-question unrelated to the previous two -- is there any way to prevent the Sage server login screen from displaying the option to create an account? I was planning to restrict accounts to myself and a few friends.
edit retag flag offensive close merge delete


If you are not doing really crazy/long computation-y/security issue things on Sage, you could just use an existing Sage server as well. Just sayin' :) Although of course I fully support much more complex technical solutions like this one!

kcrisman gravatar imagekcrisman ( 2011-10-17 23:37:23 +0200 )edit

I had run into a few times where existing Sage servers were down or running slowly, and since I had a free Linux box available, it seemed like making my own server was the way to go. It's taught me a few new things, and I appreciate you guys not minding the occasional question.

Rubin gravatar imageRubin ( 2012-02-04 09:21:27 +0200 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2011-10-17 14:43:11 +0200

jk gravatar image

The documentation has an example, which does exactly what you want:

  • Sage Notebook server
  • No accounts for strangers
  1. I want to run the Sage notebook server on a remote machine and be the only person allowed to log in. Type:

    notebook(interface='', secure=True)

edit flag offensive delete link more

answered 2011-10-10 06:56:45 +0200

Jason Grout gravatar image

updated 2011-10-10 06:59:58 +0200

The answer to (3) is to start the notebook with "accounts=False" instead of "accounts=True"

As for the answer to (1), yes, it is prudent. As for (2), in the additional notes section of the setup instructions, I've included some notes from Jason Ekstrand, who set up a Sage server with SSL.

edit flag offensive delete link more


Thanks, Jason! I hadn't realized you had updated your guide since I set up my server in July.

Rubin gravatar imageRubin ( 2011-10-11 00:23:49 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2011-10-09 13:48:06 +0200

Seen: 1,170 times

Last updated: Oct 17 '11