fix webmail

This commit is contained in:
Neale Pickett 2012-12-08 17:04:44 -06:00
parent 8e41ef169d
commit 1bfc365c76
2 changed files with 25 additions and 2 deletions

View File

@ -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
-----------------------------------

View File

@ -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);