https://bugzilla.wikimedia.org/show_bug.cgi?id=32823
--- Comment #2 from [email protected] 2011-12-07 07:52:33 UTC --- Well, I understand that $wgServer to be empty is not typical and should hopefully never happen. But that was the only way to support my corporate wiki in a quite complex network scenario. Maybe there is another solution by magic configuration, please let me explain: 1) My wiki must be accessed from two different interfaces. Access via interface 1 is via a reverse proxy (Apache). Interface 2 is via direct connected hosts on the same LAN (either by FQDN according to local hosts file or IP address). Some people also access the wiki on interface 2 by port forwarding using something like "ssh -L 8000:127.0.0.1:80". 2) Due to the reverse proxy I can't keep $wgServer auto-detected, since that results in sending a wrong (internal) URL back to the clients on interface 1. Therefore, I need to set $wgServer manually. 3) If I set $wgServer to either 'http://myproxydomain.de' or '//myproxydomain.de' I get the following results: a) Access via reverse proxy on interface 1 works, since myproxydomain.de is fully routed from in front of the reverse proxy. b) Access via interface 2 (LAN) works if I add myproxydomain.de to local hosts file (no DNS). Access on IP address (http://<IP>) doesn't work due to redirects (see c), but that's ok for me. c) But if I access via interface 2 by SSH port forwarding, e.g. as http://myproxydomain.de:8000, I am often redirected to a "HTTP Location" that does NOT contain port 8000, so the client fails to load the page. This happens for example after login or when I just access http://myproxydomain.de:8000/wiki/index.php which redirects to http://myproxydomain.de/wiki/index.php/Main_Page. Strange is, that when I keep $wgServer auto-detected these redirects contain the port 8000. So, scenario 3c works if $wgServer is auto-detected, but then access via interface 1 (reverse proxy) doesn't work. 4) If I set $wgServer to be empty all above scenarios work (even access on pure IP address URL), since the HTTP Location is always relative. Question: How can I set $wgServer (or other variables) to solve problem 3c ? -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
