aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/cgi_redirecting_to_non-https_URL.mdwn
diff options
context:
space:
mode:
authorsmcv <smcv@web>2018-01-08 06:14:10 -0400
committeradmin <admin@branchable.com>2018-01-08 06:14:10 -0400
commite5a6689a95bcbd914eaa5c03ee50e01e579f86b3 (patch)
tree185343ffd33cb603932587baba148d82dd3ef974 /doc/bugs/cgi_redirecting_to_non-https_URL.mdwn
parent263f27c774050a761097937c6c4b291acfc84c59 (diff)
downloadikiwiki-e5a6689a95bcbd914eaa5c03ee50e01e579f86b3.tar
ikiwiki-e5a6689a95bcbd914eaa5c03ee50e01e579f86b3.tar.gz
failing test (marked TODO) now present
Diffstat (limited to 'doc/bugs/cgi_redirecting_to_non-https_URL.mdwn')
-rw-r--r--doc/bugs/cgi_redirecting_to_non-https_URL.mdwn10
1 files changed, 9 insertions, 1 deletions
diff --git a/doc/bugs/cgi_redirecting_to_non-https_URL.mdwn b/doc/bugs/cgi_redirecting_to_non-https_URL.mdwn
index f27e75fcb..58b4a0137 100644
--- a/doc/bugs/cgi_redirecting_to_non-https_URL.mdwn
+++ b/doc/bugs/cgi_redirecting_to_non-https_URL.mdwn
@@ -23,6 +23,10 @@ Response Headers
Status: 302 Found
Location: http://redacted/phd/blog/38th_Dec/?updated#comment-bd0549eb2464b5ca0544f68e6c32221e
+> Your form submission was in fact done successfully. The failing redirection to http is
+> when ikiwiki follows up the successful edit by redirecting you from the form submission
+> URL to the updated page, which is done by `IkiWiki::redirect`. --[[smcv]]
+
The CGI is served by lighttpd, but the whole site is front-ended by nginx, which reverse-proxies to lighttpd.
----
@@ -38,7 +42,11 @@ that so as to have the path for letsencrypt negotiation not redirected.-- [[User
> Is the connection between nginx and lighttpd http or https?
>
> I think this is maybe a bug in `IkiWiki::redirect` when used in conjunction with
-> `reverse_proxy: 1`. I'm in the process of adding a test case in `t/relativity.t`.
+> `reverse_proxy: 1`. I've added a failing test case marked as TODO to `t/relativity.t`,
+> although I haven't been able to fix the bug yet. The bug I found is that when marked
+> as behind a reverse proxy, `IkiWiki::redirect` sends `Location: /foo/bar/`, which
+> your backend web server might be misinterpreting. It should send
+> `Location: https://redacted/foo/bar/` instead.
>
> Assuming nginx has a reasonable level of configuration, you can redirect http to https
> for the entire server except `/.well-known/acme-challenge/` as a good way to bootstrap