]> sipb.mit.edu Git - ikiwiki.git/blob - doc/forum/nginx:_404_plugin_not_working/comment_1_02a82e468676ae64374cc91ec87e39d6._comment
Added a comment
[ikiwiki.git] / doc / forum / nginx:_404_plugin_not_working / comment_1_02a82e468676ae64374cc91ec87e39d6._comment
1 [[!comment format=mdwn
2  username="http://smcv.pseudorandom.co.uk/"
3  nickname="smcv"
4  subject="comment 1"
5  date="2011-05-26T06:58:04Z"
6  content="""
7 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.)
8
9 If you temporarily set this (shell!) CGI script as your 404 handler, its output should indicate what variables nginx sets:
10
11     #!/bin/sh
12     printf \"Content-type: text/plain\r\n\r\n\"
13     env
14
15 """]]