From b79affa873df5fab1ca531433ba67ddb1c7bd5c5 Mon Sep 17 00:00:00 2001 From: nil Date: Sat, 5 Mar 2011 13:01:26 +0000 Subject: ikiwiki behind a nginx proxy --- doc/bugs/git_stderr_output_causes_problems.mdwn | 3 +++ 1 file changed, 3 insertions(+) (limited to 'doc/bugs') diff --git a/doc/bugs/git_stderr_output_causes_problems.mdwn b/doc/bugs/git_stderr_output_causes_problems.mdwn index c25ef6927..d6f14a7f3 100644 --- a/doc/bugs/git_stderr_output_causes_problems.mdwn +++ b/doc/bugs/git_stderr_output_causes_problems.mdwn @@ -40,3 +40,6 @@ Ikiwiki's git handling is sending a bunch of output to stderr. The following pa >> I'm happy with the wrapper script solution, so this is [[done]]. >> And this report is now here to point others to that solution. + +This is also useful when running ikiwiki behind a nginx proxy, because nginx +considers this stderr as invalid headers and reports a server error. -- cgit v1.2.3 From a48ecf6f3b1ec39c24c1358313aa3a9590194da7 Mon Sep 17 00:00:00 2001 From: nil Date: Sat, 5 Mar 2011 13:02:28 +0000 Subject: --- doc/bugs/git_stderr_output_causes_problems.mdwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/bugs') diff --git a/doc/bugs/git_stderr_output_causes_problems.mdwn b/doc/bugs/git_stderr_output_causes_problems.mdwn index d6f14a7f3..d8e14db42 100644 --- a/doc/bugs/git_stderr_output_causes_problems.mdwn +++ b/doc/bugs/git_stderr_output_causes_problems.mdwn @@ -42,4 +42,4 @@ Ikiwiki's git handling is sending a bunch of output to stderr. The following pa >> And this report is now here to point others to that solution. This is also useful when running ikiwiki behind a nginx proxy, because nginx -considers this stderr as invalid headers and reports a server error. +considers this stderr as invalid headers and reports a server error. -- [[nil]] -- cgit v1.2.3 From e20d55377272ff07c6ea8065466923f39fb207e6 Mon Sep 17 00:00:00 2001 From: "https://www.google.com/accounts/o8/id?id=AItOawmJXXNEI07X9crH8W7SN2wN2FIErshpZM4" Date: Sun, 6 Mar 2011 23:43:45 +0000 Subject: wiki_file_regexp vs CGI bug --- ...rs__96___setting_not_propagated_to_CGI_wrapper.mdwn | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 doc/bugs/__96__wiki__95__file__95__chars__96___setting_not_propagated_to_CGI_wrapper.mdwn (limited to 'doc/bugs') diff --git a/doc/bugs/__96__wiki__95__file__95__chars__96___setting_not_propagated_to_CGI_wrapper.mdwn b/doc/bugs/__96__wiki__95__file__95__chars__96___setting_not_propagated_to_CGI_wrapper.mdwn new file mode 100644 index 000000000..bf30145f9 --- /dev/null +++ b/doc/bugs/__96__wiki__95__file__95__chars__96___setting_not_propagated_to_CGI_wrapper.mdwn @@ -0,0 +1,18 @@ +I've set `wiki_file_chars` to a non-standard value in the setup file: + + wiki_file_chars => "-[:alnum:]+/.:_\x{1f310}\x{1f430}", + +(In case you're wondering, [this is the page](http://xn--9dbdkw.se/🌐/).) + +ikiwiki recognises my pages when I run it from the command line, but +when I edit something through the CGI "script", ikiwiki would suddenly +not recognise them. + +By running `strings` on the CGI wrapper I found that the option +`wiki_file_regexp` was still at its original setting. So as a workaround, +I added this to the setup file and everything worked: + + wiki_file_regexp => qr/(^[-[:alnum:]+\/.:_\x{1f310}\x{1f430}]+$)/, + +Maybe the CGI wrapper should specially call `checkconfig`, which is +the function responsible for updating `wiki_file_regexp`? -- cgit v1.2.3 From 5e08848189b96ac772a6e581eb51bde9c7a9bae6 Mon Sep 17 00:00:00 2001 From: "https://www.google.com/accounts/o8/id?id=AItOawmJXXNEI07X9crH8W7SN2wN2FIErshpZM4" Date: Sun, 6 Mar 2011 23:46:21 +0000 Subject: Forgot to sign... --- ...95__file__95__chars__96___setting_not_propagated_to_CGI_wrapper.mdwn | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc/bugs') diff --git a/doc/bugs/__96__wiki__95__file__95__chars__96___setting_not_propagated_to_CGI_wrapper.mdwn b/doc/bugs/__96__wiki__95__file__95__chars__96___setting_not_propagated_to_CGI_wrapper.mdwn index bf30145f9..4fdd14008 100644 --- a/doc/bugs/__96__wiki__95__file__95__chars__96___setting_not_propagated_to_CGI_wrapper.mdwn +++ b/doc/bugs/__96__wiki__95__file__95__chars__96___setting_not_propagated_to_CGI_wrapper.mdwn @@ -16,3 +16,5 @@ I added this to the setup file and everything worked: Maybe the CGI wrapper should specially call `checkconfig`, which is the function responsible for updating `wiki_file_regexp`? + +--[[legoscia]] -- cgit v1.2.3