From 1bfc365c762bdb04a60dd82b25261f8488bc8d16 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Sat, 8 Dec 2012 17:04:44 -0600 Subject: [PATCH] fix webmail --- index.mdwn | 23 +++++++++++++++++++++++ mail.cgi.c | 4 ++-- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/index.mdwn b/index.mdwn index 3d2f6d5..9a2a0ff 100644 --- a/index.mdwn +++ b/index.mdwn @@ -8,6 +8,29 @@ held by folks who know the right person to ask. ssh fingerprint for woozle.org: 63:ac:b0:e9:ee:9f:a9:4f:55:0a:4a:42:5d:45:47:06 --> +December 8 pt. 2: Webmail works now +----------------------------------- + +I didn't get a chance to test webmail before I had to run off to an appointment. +It's back up now, near as I can tell. + + +December 8: SSL Certificate Renewed +----------------------------------- + +Woozle now has a new SSL certificate, +thanks to the generous folks at [StartCom](http://www.startssl.com). +I think everything is back to normal. + +If you are having trouble with web, or sending or recieving email, +please *please* let me (Neale) know right away. +Phone or text message is okay. +As far as I can tell, everything's working fine, +and I depend on *you* to tell me otherwise. + + + + December 7: Expired SSL Certificate ----------------------------------- diff --git a/mail.cgi.c b/mail.cgi.c index 93f7643..69923f7 100644 --- a/mail.cgi.c +++ b/mail.cgi.c @@ -15,8 +15,8 @@ main(int argc, char *argv[]) char filename[512]; char *ext; - if ((! pathinfo) || (! remaddr) || (0 != strncmp(remaddr, "127.0.0.1:", 10))) { - printf("%s\n", baseurl); + if ((! pathinfo) || (! remaddr) || (! getenv("HTTPS"))) { + printf("Location: %s\n", baseurl); return 0; } else if (0 == strcmp(pathinfo, "/index.html")) { snprintf(filename, sizeof filename, "%s/index.php", basepath);