HTTPS only?

16 views
Skip to first unread message

Scott Merrill

unread,
Dec 3, 2011, 5:59:16 PM12/3/11
to Habari Users
I've just installed Habari 0.7 from git onto a Debian system. I'm
using nginx, rather than Apache, and I've got it configured to only
respond to HTTPS requests.

I installed Habari successfully using HTTPS, but now Habari seems to
want to use HTTP for requests. I can load https://mysite/ and get the
initial page, but if I manually type in https://mysite/admin Habari is
redirecting to http://mysite/auth/login.

Is there anything I need to do within Habari to make it build only
https:// URLs?

Thanks,
Scott

mikelietz

unread,
Dec 3, 2011, 11:25:15 PM12/3/11
to habari-users
Looks like HTTPS needs to be set On in $_SERVER, looking at
https://github.com/habari/system/blob/master/classes/site.php#L147
Does nginx not set that on an https:// request?

mikelietz

On Dec 3, 5:59 pm, Scott Merrill <ski...@skippy.net> wrote:
> I've just installed Habari 0.7 from git onto a Debian system. I'm
> using nginx, rather than Apache, and I've got it configured to only
> respond to HTTPS requests.
>
> I installed Habari successfully using HTTPS, but now Habari seems to

> want to use HTTP for requests. I can loadhttps://mysite/and get the


> initial page, but if I manually type inhttps://mysite/adminHabari is

> redirecting tohttp://mysite/auth/login.

Scott Merrill

unread,
Dec 4, 2011, 6:54:31 AM12/4/11
to habari...@googlegroups.com
I thought I had set "fastcgi_param HTTPS on;" as described in the
Habari wiki for nginx
(http://wiki.habariproject.org/en/Installation_using_Nginx), but I was
wrong. Properly defining that in the config worked, and Habari is
using HTTPS exclusively now.

Thanks!

> --
> To post to this group, send email to habari...@googlegroups.com
> To unsubscribe from this group, send email to habari-users...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/habari-users

Reply all
Reply to author
Forward
0 new messages