From 68e266e0425bea4087a87fa541650ba2789012b5 Mon Sep 17 00:00:00 2001 From: "http://smcv.pseudorandom.co.uk/" Date: Fri, 20 Dec 2013 05:54:54 -0400 Subject: [PATCH] Added a comment --- ..._ef4be9e70bd6d8c970fd8982f525d2d0._comment | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 doc/forum/Using_reverse_proxy__59___base_URL_is_http_instead_of_https/comment_1_ef4be9e70bd6d8c970fd8982f525d2d0._comment diff --git a/doc/forum/Using_reverse_proxy__59___base_URL_is_http_instead_of_https/comment_1_ef4be9e70bd6d8c970fd8982f525d2d0._comment b/doc/forum/Using_reverse_proxy__59___base_URL_is_http_instead_of_https/comment_1_ef4be9e70bd6d8c970fd8982f525d2d0._comment new file mode 100644 index 000000000..acbcea54e --- /dev/null +++ b/doc/forum/Using_reverse_proxy__59___base_URL_is_http_instead_of_https/comment_1_ef4be9e70bd6d8c970fd8982f525d2d0._comment @@ -0,0 +1,21 @@ +[[!comment format=mdwn + username="http://smcv.pseudorandom.co.uk/" + nickname="smcv" + subject="comment 1" + date="2013-12-20T09:54:51Z" + content=""" +One way to solve this would be a new `$config{hard_code_urls}` +option whose semantics are \"you're behind a reverse proxy, hard-code +`$config{cgiurl}` and `${url}` in output rather than using the +address from the HTTP request\" (in other words, selectively undo some +of the automatic self-referential URL detection). + +Another possibility would be to avoid using ``, and when producing +CGI pages, make all links look like `/sandbox/` or +`/cgi-bin/ikiwiki.cgi?...`; but that can only work if your content and +CGI are on the same domain, and is likely to be more complex. + +The `` is required to be an absolute URI (including the +protocol and domain name) so the CGI output can't avoid doing a certain +amount of hard-coding, unfortunately. +"""]] -- 2.44.0