[01:10:28] How can I use MediaWiki if the web server is listening on an Unix socket? [01:11:02] I tried setting the REMOTE_ADDR header, but that caused the connection to fail completely. [01:31:20] I'm also setting it up behind Anubis and trying to use standard TCP over localhost isn't working either. [01:31:30] At least with sockets I get an error, instead of a failed connection. [01:46:36] you'll have to be more specific on the error(s) you are getting [01:47:48] Fatal error: Uncaught MWException: Unable to determine IP. [01:48:02] thrown in /var/www/html/ntmwiki/w/includes/Request/WebRequest.php on line 1281 [01:48:11] I can make a paste, too. [01:49:06] nah that's prob good enough [01:49:16] you'll need to set the appropriate header so MW can grab the IP [01:49:23] Which is? [01:49:36] I believe I tried HTTP_X_FORWARD_FOR [01:50:14] XFF can work, but you need to tell MW that the source is trusted in order for it to use it [01:51:10] https://www.mediawiki.org/wiki/Manual:$wgCdnServersNoPurge and potentially also https://www.mediawiki.org/wiki/Manual:$wgUsePrivateIPs [01:51:26] alternatively, your webserver may have the ability to set the "real" IP address via its configuration [01:51:43] (that isn't done via HTTP headers, it'd be webserver-specific) [01:52:01] I'm using Nginx. [01:53:57] So, do I set the CDN server as the localhost IP or to something else? [01:54:22] I'm really not much into networking. [02:04:23] Oh I see, forcing REMOTE_ADDR to be HTTP_X_FORWARED_FOR causes a redirect issue that the browser detects. [02:08:53] Well, I got it to work with TCP now. [02:09:05] Turns out it was the force HTTPS option.