Hi,
I installed a small mediawiki on a Linux/Apache server for internal use on our university laboratory group. The wiki is fully readable both within and out of the university network. However when I try to edit it *outside* the university network, on saving the page it waits and then times out, like it couldn't properly connect. Using a VPN solves the problem, however I'd like to know if I can fix this issue since sometimes this would require me to switch between VPNs during work, which is annoying.
What can I do to troubleshoot this issue?
thanks, Massimo
On 09/05/2013 05:56 AM, massimo sandal wrote:
The wiki is fully readable both within and out of the university network. However when I try to edit it *outside* the university network, on saving the page it waits and then times out, like it couldn't properly connect. Using a VPN solves the problem,
You are probably getting a different set of firewall rules when connecting via VPN.
I happen to be using a network with a mis-configured transparent proxy at the moment that is blocking POSTs. GET's work fine:
$ curl 'http://WIKIURL/api.php?action=purge&titles=Main_Page& format=json' {"error":{"code":"mustbeposted","info":"The purge module requires a POST request"}}
For POSTs, I should see:
$ curl -X POST 'http://WIKIURL/api.php?action=purge& titles=Main_Page&format=json' {"purge":[{"ns":0,"title":"Main Page","purged":""}]}
Instead, I see
$ curl -X POST 'http://WIKIURL/api.php?action=purge& titles=Main_Page&format=json' [...] <P> The following error was encountered: <UL> <LI> <STRONG> Invalid Request </STRONG> </UL> [...]
A similar test might reveal problems with POSTs for you.
mediawiki-l@lists.wikimedia.org