Hello,
I find this strange that the there is no proper documentation on how to
configure nginx to reverse proxy to mediawiki.
My setup:
https://wiki.domain.com
Internal
http://192.168.1.5/wiki
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_pass
http://192.168.1.5;
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?