Hi all,
I'm planning to spend some time in Zurich getting a centralauth role for vagrant working (part of https://www.mediawiki.org/wiki/Z%C3%BCrich_Hackathon_2014/Topics#Production-...). I wanted to get opinions (probably more bikeshed) about how you would like to access multiple wikis on a single vagrant instance. If anyone is interested in using CentralAuth on vagrant for development/testing, please chime in!
We can either use a different subdirectory per wiki, or different domain per wiki.
Different domains is closer to how we run thing in production, but it would require copying dns settings to your host (there doesn't seem to be a good, cross-platform way to do this from vagrant itself, but if anyone has a solution, that would make the decision easy). So you would work on,
http://localhost:8080/ (main vagrant wiki) http://loginwiki.dev:8080/ (loginwiki) etc.
Different subdirectories is how I currently do development and I personally don't mind it, but it makes turning CentralAuth on and off more of a challenge, since the current wiki is in the web root. So
http://localhost:8080/wiki/ (main vagrant wiki) http://localhost:8080/loginwiki/ (loginwiki) etc.
Preferences?
Chris
On Mon, May 5, 2014 at 1:17 PM, Chris Steipp csteipp@wikimedia.org wrote:
Different domains is closer to how we run thing in production, but it would require copying dns settings to your host (there doesn't seem to be a good, cross-platform way to do this from vagrant itself, but if anyone has a solution, that would make the decision easy).
We have a public wildcard DNS record for *.local.wmftest.net that resolves to 127.0.0.1 for just this sort of thing. The Wikimania Scholarships role uses it to setup a named vhost for http://scholarships.local.wmftest.net:8080/.
Bryan
I just found out about that from Ori too. Problem solved. Thanks!
On Mon, May 5, 2014 at 12:42 PM, Bryan Davis bd808@wikimedia.org wrote:
On Mon, May 5, 2014 at 1:17 PM, Chris Steipp csteipp@wikimedia.org wrote:
Different domains is closer to how we run thing in production, but it
would
require copying dns settings to your host (there doesn't seem to be a
good,
cross-platform way to do this from vagrant itself, but if anyone has a solution, that would make the decision easy).
We have a public wildcard DNS record for *.local.wmftest.net that resolves to 127.0.0.1 for just this sort of thing. The Wikimania Scholarships role uses it to setup a named vhost for http://scholarships.local.wmftest.net:8080/.
Bryan
Bryan Davis Wikimedia Foundation bd808@wikimedia.org [[m:User:BDavis_(WMF)]] Sr Software Engineer Boise, ID USA irc: bd808 v:415.839.6885 x6855
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org