[Labs-l] Help needed with instance proxy

Liangent liangent at gmail.com
Wed Jan 30 08:19:45 UTC 2013


On Wed, Jan 30, 2013 at 3:51 PM, Roan Kattouw <roan.kattouw at gmail.com> wrote:
> 2013/1/29 Silke Meyer <silke.meyer at wikimedia.de>:
>> Hi Ryan and all,
>>
>> you proposed me to try the instance proxy to access several web services
>> on different labs instances via one IP address.
>>
>> I found https://labsconsole.wikimedia.org/wiki/Proxy - but that's still
>> really short. How do I use it???
>>
> Generally, assuming you have a web service running on port 80 as
> usual, you can go to http://<instancename>.instance-proxy.wmflabs.org/
> , and it'll Just Work. For instance, I have an instance called
> ve-change-marking (FQDN: ve-change-marking.pmtpa.wmflabs) running
> MediaWiki and I access it at
> http://ve-change-marking.instance-proxy.wmflabs.org/wiki/ .
>
> You don't need any special setup for this. As long as the
> instance-proxy instance (instance-proxy itself runs in a labs instance
> :D) is able to connect to port 80 on your instance, these URLs will
> work. Note that if you're running MediaWiki on the instance, you may
> have to explicitly configure $wgServer =
> 'http://foobar.instance-proxy.wmflabs.org'; for it to work, otherwise
> MediaWiki may get confused and try to redirect you to
> http://foobar.pmtpa.wmflabs or something.

You may also want to set $wgSquidServersNoPurge[] = '10.4.1.15'; for MediaWiki.

btw. I guess this IP might change if I delete and recreate that
instance. Is there a good way to avoid hard-coding this?

-Liangent

>
> Roan
>
> _______________________________________________
> Labs-l mailing list
> Labs-l at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/labs-l



More information about the Labs-l mailing list