Alex F wrote: > > Hello, > > I have the following setup: > > haproxy load balancer which listens on port 80 > apache which listens on port 79 > nginx which listens on port 81 > > When I access www.mysite.com/wiki haproxy automatically delivers the request > to nginx. > The problem is that the mediawiki scripts rewrite my URL from > www.mysite.com/wiki/ to www.mysite.com:81/wiki/index.php?title=Main_Page > If I give the full link like so: > www.mysite.com/wiki/index.php?title=Main_Page it does work without showing up > the port. > > I have tried to comment out the following line in index.php: > $mediaWiki->initialize( $wgTitle, $wgArticle, $wgOut, $wgUser, > $wgRequest ); > and it no longer includes the port in the URL, but it also no longer displays > content in pages. > > What can I do?
Manually set $wgServer to the right value inside LocalSettings.php _______________________________________________ MediaWiki-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
