https://bugzilla.wikimedia.org/show_bug.cgi?id=52400

--- Comment #3 from animedb...@gmail.com ---
Yes, I did post this on the Project:Support Desk per your recommendation.

Ciencia Al Poder replied stating:

<blockquote>MediaWiki generates dynamic URLs using JavaScript, and that
JavaScript is using wgServer and wgScriptPath, which generates an absolute URL
or server-relative URL that the reverse proxy isn't rewritting. This is
something a reverse proxy can't handle, and I'd say MediaWiki isn't supported
to run under such a reverse proxy.

The simple solution is to avoid to use a junction on the proxy, so no
additional subdirectories should be added to each URL. This can be done using a
different port or hostname.

For MediaWiki to support a reverse proxy you should open a bug request about
that, which should involve the generation of relative URLs in JavaScript
instead of absolute URLs, although that may be incompatible with Short
Urls.</blockquote>

https://www.mediawiki.org/wiki/Thread:Project:Support_desk/Mediawiki_running_behind_loadbalancer_and_reverse_proxy,_Some_links_are_breaking./reply

It seems that mediawiki does not have the capability of being run behind a
reverse proxy in this mannor. It does have the short URLs working from the load
balancer directoy as well as from behind the reverse proxy. It seems that links
that are broken may come from the relative URLS generated in JavaScript which
are not aware they are behind the reverse proxy and using an absolute URL.

Allowing for this feature seems possible.

-- 
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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to