[MediaWiki-l] Mediawiki behind Nginx reverse proxy

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[MediaWiki-l] Mediawiki behind Nginx reverse proxy


I find this strange that the there is no proper documentation on how to
configure nginx to reverse proxy to mediawiki.

My setup:



location  / {
# rewrite /(.*) /wiki/$1  break;
#  rewrite ^/(.*)$ /wiki/index.php?title=$1&$args;

   rewrite /(.*) /wiki/$1 break;
   rewrite ^/$ /wiki/ permanent;
   rewrite ^/(.+)$ /wiki/index.php?title=$1 last;

   proxy_redirect     off;
   proxy_set_header   Host $host;

I have tried a couple of things, I usually end up 404 - Not Found from
the outside where I see a GET /wiki/ HTTP/1.0" 301 0 " in the internal
servers log.

Any idea how to set this up properly?

MediaWiki-l mailing list
To unsubscribe, go to: