I'm assuming you have a functioning https apache server. If you're using 2.17, search for every occurrence of "SSL" in
https://webwork.maa.org/wiki/Installation_Manual_for_2.17_on_Ubuntu
and implement the necessary changes. If 2.16,
https://webwork.maa.org/wiki/Installation_Manual_for_2.16_on_Ubuntu