I was running private wiki using mediawiki 1.21 running on apache
behind nginx. I'm serving wiki and some other sites using https. To
save on ssl cert I'm doing following:
I have
http://wiki.somehost.org redirect to
https://ssl.somehost.org/wiki.
Here's my nginx config:
{{{
server {
listen 80;
server_name
wiki.somehost.org ;
rewrite ^(.*)$
https://ssl.somehost.org/wiki$request_uri? permanent;
}
...
server {
listen 443;
...
location /wiki/ {
proxy_pass
http://127.0.0.1:8080/;
proxy_set_header Host
wiki.somehost.org;
sub_filter 'http://wiki.somehost.org'
'https://ssl.somehost.org/wiki';
sub_filter_once off;
}
...
}
}}}
Apache serves wiki from 8080; And I have floowing in LocalSettings.php:
{{{
$wgScriptPath = "/wiki";
$wgServer = "https://ssl.somehost.org"
}}}
And it was okay with 1.21. Now I'm upgraded to 1.27 and I've get
infinite redirects on login. Then I've commented $wgServer and able to
login.
But my urls looks weird:
1) login is ok:
https://ssl.somehost.org/wiki/index.php?title=Special:UserLogin
2) rest is not ok:
https://ssl.somehost.org/wiki/wiki/index.php/Main_Page
Please help with wiki configuration.