aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorhttps://www.google.com/accounts/o8/id?id=AItOawlTS8BlL-OtDvQwLk1ohkRAmfCb_U5yOvQ <Roland@web>2015-03-03 07:23:52 -0400
committeradmin <admin@branchable.com>2015-03-03 07:23:52 -0400
commit0742a3c95d6d64c647f64ea9abcb90198c109c0c (patch)
tree3bab42d681d2dff46140ba09c12efafee034c4d4 /doc
parent12841c8a86cc474e27103e33a373214db79e0bcf (diff)
downloadikiwiki-0742a3c95d6d64c647f64ea9abcb90198c109c0c.tar
ikiwiki-0742a3c95d6d64c647f64ea9abcb90198c109c0c.tar.gz
Added a comment: Working configuration for nginx
Diffstat (limited to 'doc')
-rw-r--r--doc/forum/nginx:_404_plugin_not_working/comment_6_2eb7884cc1d83d1ccb59ee3ef2d5ef77._comment28
1 files changed, 28 insertions, 0 deletions
diff --git a/doc/forum/nginx:_404_plugin_not_working/comment_6_2eb7884cc1d83d1ccb59ee3ef2d5ef77._comment b/doc/forum/nginx:_404_plugin_not_working/comment_6_2eb7884cc1d83d1ccb59ee3ef2d5ef77._comment
new file mode 100644
index 000000000..63ecb0af1
--- /dev/null
+++ b/doc/forum/nginx:_404_plugin_not_working/comment_6_2eb7884cc1d83d1ccb59ee3ef2d5ef77._comment
@@ -0,0 +1,28 @@
+[[!comment format=mdwn
+ username="https://www.google.com/accounts/o8/id?id=AItOawlTS8BlL-OtDvQwLk1ohkRAmfCb_U5yOvQ"
+ nickname="Roland"
+ subject="Working configuration for nginx"
+ date="2015-03-03T11:23:51Z"
+ content="""
+This works fine for me with nginx:
+
+ location /wiki {
+ error_page 404 @ikiwiki404;
+ }
+
+ # Another definition for ikiwiki.cgi, only reachable by error_page 404.
+ location @ikiwiki404 {
+ fastcgi_pass unix:/var/run/fcgiwrap.socket;
+ fastcgi_index ikiwiki.cgi;
+ fastcgi_param SCRIPT_FILENAME /srv/www/htdocs/wiki/ikiwiki.cgi;
+ fastcgi_param DOCUMENT_ROOT /srv/www/htdocs/wiki;
+
+ # For 404 plugin
+ fastcgi_param QUERY_STRING \"\";
+ fastcgi_param REQUEST_METHOD \"get\";
+ fastcgi_param REDIRECT_STATUS 404;
+ fastcgi_param REDIRECT_URL $uri;
+
+ include /etc/nginx/fastcgi_params;
+ }
+"""]]