diff options
author | http://smcv.pseudorandom.co.uk/ <smcv@web> | 2011-05-26 06:58:04 +0000 |
---|---|---|
committer | admin <admin@branchable.com> | 2011-05-26 06:58:04 +0000 |
commit | 8ae61ce83fab407e9e70e8de71d4e759c0b60ce3 (patch) | |
tree | ca3991d829063e3960ea8ea89c415c6fa72e1979 /doc | |
parent | 9a8f738b813aea4653447e411ae0ccd384c01de6 (diff) | |
download | ikiwiki-8ae61ce83fab407e9e70e8de71d4e759c0b60ce3.tar ikiwiki-8ae61ce83fab407e9e70e8de71d4e759c0b60ce3.tar.gz |
Added a comment
Diffstat (limited to 'doc')
-rw-r--r-- | doc/forum/nginx:_404_plugin_not_working/comment_1_02a82e468676ae64374cc91ec87e39d6._comment | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/forum/nginx:_404_plugin_not_working/comment_1_02a82e468676ae64374cc91ec87e39d6._comment b/doc/forum/nginx:_404_plugin_not_working/comment_1_02a82e468676ae64374cc91ec87e39d6._comment new file mode 100644 index 000000000..982011286 --- /dev/null +++ b/doc/forum/nginx:_404_plugin_not_working/comment_1_02a82e468676ae64374cc91ec87e39d6._comment @@ -0,0 +1,15 @@ +[[!comment format=mdwn + username="http://smcv.pseudorandom.co.uk/" + nickname="smcv" + subject="comment 1" + date="2011-05-26T06:58:04Z" + content=""" +The 404 plugin relies on environment variables set by Apache for 404 handlers. Not all web servers set the same variables (404 handlers aren't a standard feature) so it might need adapting to support nginx. (lighttpd has a similer problem - it doesn't indicate that the request was a 404 in an obvious way.) + +If you temporarily set this (shell!) CGI script as your 404 handler, its output should indicate what variables nginx sets: + + #!/bin/sh + printf \"Content-type: text/plain\r\n\r\n\" + env + +"""]] |