Hey everyone,
I have a proxy from one machine - first.domain.com/site serving a wiki on a second machine - second.domain.com/wiki. The wiki serves perfectly untill a user logs in and then the /site is dropped and the wiki does not display. Has anybody come across this before? I've searched about and it appears to be a common problem but I can't find a solution.
Any help is very appreciated.
J
I have a proxy from one machine - first.domain.com/site serving a wiki on a second machine - second.domain.com/wiki. The wiki serves perfectly untill a user logs in and then the /site is dropped and the wiki does not display. Has anybody come across this before? I've searched about and it appears to be a common problem but I can't find a solution.
Are you using apache? If so, how do your proxy rules look? They should probably look like this:
# The rewrite rule fixes the trailing slash problem. RewriteRule ^/site$ http://first.domain.com/site/ [R] ProxyPass /site/ http://second.domain.com/site/ ProxyPassReverse /site/ http://second.domain.com/site/
Are you using short URLs? If so, how are you doing it? Alias, or rewrite rules?
V/r,
Ryan Lane
Thanks for the Reply,
It looks about the same and seems to work for everything else but media wiki.
I have tried adding /site http://first.domain.com/site to the $wgScriptPath but then when I log in the url is resolved to /site/site/wiki.
If I remove /site http://first.domain.com/site from the $wgScriptPath the CSS is not rendered.
It's ver yfrustrating and seems to be a mediawiki thing.
2009/8/27 Lane, Ryan Ryan.Lane@ocean.navo.navy.mil
I have a proxy from one machine - first.domain.com/site serving a wiki on a second machine - second.domain.com/wiki. The wiki serves perfectly untill a user logs in and then the /site is dropped and the wiki does not display. Has anybody come across this before? I've searched about and it appears to be a common problem but I can't find a solution.
Are you using apache? If so, how do your proxy rules look? They should probably look like this:
# The rewrite rule fixes the trailing slash problem. RewriteRule ^/site$ http://first.domain.com/site/ [R] ProxyPass /site/ http://second.domain.com/site/ ProxyPassReverse /site/ http://second.domain.com/site/
Are you using short URLs? If so, how are you doing it? Alias, or rewrite rules?
V/r,
Ryan Lane
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org