Page MenuHomePhabricator

Set up some sort of web pages at wmflabs.org or www.wmflabs.org
Closed, ResolvedPublic

Description

Maybe I'm crazy, but http://wmflabs.org doesn't seem to resolve, while http://www.wmflabs.org does.


mzmcbride@gonzo:~$ curl "wmflabs.org"
curl: (6) Couldn't resolve host 'wmflabs.org'

mzmcbride@gonzo:~$ curl "www.wmflabs.org"
<!DOCTYPE HTML PUBLIC "-W3CDTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Redirecting...</title>
<meta http-equiv="REFRESH" content="0;url=https://labsconsole.wikimedia.org/wiki/Main_Page"></head>

</html>

Ideally both would 301 or 302 to https://labsconsole.wikimedia.org/wiki/Main_Page, right?


Version: unspecified
Severity: normal

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 12:27 AM
bzimport added a project: Cloud-VPS.
bzimport set Reference to bz36885.

it's firefox which does it...

www.wmflabs.org is registered to the "incubator" project, which I had voluntarily set up this redirect to reduce confusion of other people. However, labsconsole does not support adding a naked domain to the hosts, and wmflabs.org does not automatically redirect users to the www.wmflabs.org domains though :(

Just need the DNS of wmflabs.org to be configured to point to the www subdomain, and everything is solved :)

(In reply to comment #0)

Maybe I'm crazy, but http://wmflabs.org doesn't seem to resolve

Works fine here - I end up at https://labsconsole.wikimedia.org/wiki/Main_Page

Is this still an issue or can this ticket be closed as RESOLVED?

(In reply to comment #5)

(In reply to comment #0)

Maybe I'm crazy, but http://wmflabs.org doesn't seem to resolve

Works fine here - I end up at https://labsconsole.wikimedia.org/wiki/Main_Page

Is this still an issue or can this ticket be closed as RESOLVED?

This is still an issue, the DNS for the www.wmflabs.org and the root wmflabs.org domain are still different.

Nothing's changed here AFAIK.

$ for domain in {{bastion,www}.,}wmflabs.org; do for ns in @labs-ns{0..1}.wikimedia.org ''; do echo "${ns} ${domain}:"; dig +noall +answer $ns $domain; done; echo; done
@labs-ns0.wikimedia.org bastion.wmflabs.org:
bastion.wmflabs.org. 3600 IN A 208.80.153.207
@labs-ns1.wikimedia.org bastion.wmflabs.org:
bastion.wmflabs.org. 3600 IN A 208.80.153.207
bastion.wmflabs.org:
bastion.wmflabs.org. 3587 IN A 208.80.153.207

@labs-ns0.wikimedia.org www.wmflabs.org:
www.wmflabs.org. 3600 IN A 208.80.153.230
@labs-ns1.wikimedia.org www.wmflabs.org:
www.wmflabs.org. 3600 IN A 208.80.153.230
www.wmflabs.org:
www.wmflabs.org. 3600 IN A 208.80.153.230

@labs-ns0.wikimedia.org wmflabs.org:
@labs-ns1.wikimedia.org wmflabs.org:
wmflabs.org:

(In reply to comment #5)

(In reply to comment #0)

Maybe I'm crazy, but http://wmflabs.org doesn't seem to resolve

Works fine here - I end up at https://labsconsole.wikimedia.org/wiki/Main_Page

Is this still an issue or can this ticket be closed as RESOLVED?

Some Web browsers (such as Mozilla Firefox) will silently and automatically try the www or non-www version of the URL. I guess this makes for a better user experience.

http://wmflabs.org still does not resolve properly.

Today neither resolve:

mzmcbride@gonzo:~$ curl "www.wmflabs.org"
curl: (6) Could not resolve host: www.wmflabs.org; nodename nor servname provided, or not known

mzmcbride@gonzo:~$ curl "wmflabs.org"
curl: (6) Could not resolve host: wmflabs.org; nodename nor servname provided, or not known

Just want to confirm that:

[tim@passepartout ~]$ host wmflabs.org
[tim@passepartout ~]$ host www.wmflabs.org
Host www.wmflabs.org not found: 3(NXDOMAIN)
[tim@passepartout ~]$ host tools.wmflabs.org
tools.wmflabs.org has address 208.80.153.201
[tim@passepartout ~]$

JFTR: www.wmflabs.org resolves again, wmflabs.org not.

I'm guessing we lost the status change history in the migration from BZ, but I don't think this is resolved. We still don't have A/AAAA records for wmflabs.org. itself, we should be able to use the same trick as I did in T137160#2359856 to achieve that, if we want...

valhallasw subscribed.

www.wmflabs.org is also broken by now.

In general, we might want to consider having a wildcard for *.wmflabs.org with a 'This subdomain is not being serviced', not unlike the production servers and beta (e.g. http://91.198.174.192/), but with a link to wikitech.

Petrb renamed this task from wmflabs.org does not resolve to www.wmflabs.org does not resolve.Aug 6 2016, 7:28 PM
Petrb removed RyanLane as the assignee of this task.
Petrb added a subscriber: RyanLane.
AlexMonk-WMF renamed this task from www.wmflabs.org does not resolve to Set up some sort of web pages at wmflabs.org or www.wmflabs.org.Aug 6 2016, 10:26 PM

@Andrew, @yuvipanda: How about I CNAME these domains to proxy-eqiad.wmflabs.org (novaproxy-01 in project-proxy), and make the dynamicproxy web server config redirect all such requests to https://wikitech.wikimedia.org/wiki/Portal:Wikimedia_Labs ? That way we automatically get the existing *.wmflabs.org (SAN wmflabs.org) SSL certificate and don't have to share it with any other projects.

@Andrew, @yuvipanda: How about I CNAME these domains to proxy-eqiad.wmflabs.org (novaproxy-01 in project-proxy), and make the dynamicproxy web server config redirect all such requests to https://wikitech.wikimedia.org/wiki/Portal:Wikimedia_Labs ? That way we automatically get the existing *.wmflabs.org (SAN wmflabs.org) SSL certificate and don't have to share it with any other projects.

this sounds good to me

@Andrew @yuvipanda unless you object I say we for it. Simple and maintainable solution to this issue.

Change 303938 had a related patch set uploaded (by Alex Monk):
dynamicproxy: Add nginx config to redirect www.wmflabs.org/wmflabs.org to wikitech

https://gerrit.wikimedia.org/r/303938

I've set up the www DNS record:

www.wmflabs.org.	3600	IN	CNAME	proxy-eqiad.wmflabs.org.
proxy-eqiad.wmflabs.org. 86400	IN	A	208.80.155.156

Will do wmflabs.org itself after ops OK the change linked above.

Change 303938 merged by Yuvipanda:
dynamicproxy: Add nginx config to redirect www.wmflabs.org/wmflabs.org to wikitech

https://gerrit.wikimedia.org/r/303938

Yuvi also did https://gerrit.wikimedia.org/r/#/c/305540/2

You can now go to https://www.wmflabs.org. and https://wmflabs.org.
DNS may be spotty until the cache expires on labs-ns1 in about an hour. labs-ns0 should be fine.

AlexMonk-WMF claimed this task.

alex@alex-laptop:~$ host wmflabs.org labs-ns1.wikimedia.org | grep addr
wmflabs.org has address 208.80.155.156