aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2012-10-11 11:22:50 -0400
committerJoey Hess <joey@kitenet.net>2012-10-11 11:22:50 -0400
commitef0c569a956f97ee02df16c1a3e8f3cb2993a62a (patch)
tree8d361020a0db3a44c989acd9410d28d87848bca7
parentb1cd1c067f5f5d20afc4db3731fa5cebaeed0635 (diff)
parentf5644ae9fb30e620a6ba05493ae6ce665b71eaec (diff)
downloadikiwiki-ef0c569a956f97ee02df16c1a3e8f3cb2993a62a.tar
ikiwiki-ef0c569a956f97ee02df16c1a3e8f3cb2993a62a.tar.gz
Merge branch 'master' of ssh://git.ikiwiki.info
-rw-r--r--doc/forum/CGI_script_and_HTTPS.mdwn29
1 files changed, 29 insertions, 0 deletions
diff --git a/doc/forum/CGI_script_and_HTTPS.mdwn b/doc/forum/CGI_script_and_HTTPS.mdwn
new file mode 100644
index 000000000..2f255002d
--- /dev/null
+++ b/doc/forum/CGI_script_and_HTTPS.mdwn
@@ -0,0 +1,29 @@
+Dear ikiwiki folks,
+
+using Debian Wheezy and ikiwiki 3.20120629 for some reason when accessing the site using HTTP (and not HTTPS), going to Edit, so executing the CGI script, all URLs are prepended with HTTPS, which I do not want.
+
+ <base href="https://www.example.org/" />
+
+Trying to look at the source, I guess it is originating from `IkiWiki/CGI.pm`.
+
+ sub printheader ($) {
+ my $session=shift;
+
+ if (($ENV{HTTPS} && lc $ENV{HTTPS} ne "off") || $config{sslcookie}) {
+ print $session->header(-charset => 'utf-8',
+ -cookie => $session->cookie(-httponly => 1, -secure => 1));
+ }
+ else {
+ print $session->header(-charset => 'utf-8',
+ -cookie => $session->cookie(-httponly => 1));
+ }
+ }
+
+Does it check if HTTPS is enabled in the environment? During `ikiwiki --setup example.setup` or when the CGI script is run when the site is accessed (for example in an Apache environment)?
+
+Can this somehow be disabled in ikiwiki. Reading the code I guess I could somehow set `HTTPS = off` somewhere in the `VirtualHost` section of the Apache configuration.
+
+
+Thanks,
+
+--[[PaulePanter]]