Forced www subdomain alternatives

14 views
Skip to first unread message

Alex Szczuczko

unread,
May 10, 2013, 11:48:29 PM5/10/13
to lagtv-...@googlegroups.com
Hi,

Currently all live requests to lag.tv are redirected to www.lag.tv. I
saw issue #289[1], and I do agree with its submitter that conforming to
a long outdated standard is not ideal.

The redirect appears to be entirely in nginx's configuration. It seems
to be deliberately set up this way, so instead of jumping right to
lag.tv, I've come up with two alternative configurations:

The first[2] allows both www.lag.tv and lag.tv to be used without
redirection, but preserves redirection for any other subdomain (not that
there are any?).

The second[3] allows only lag.tv to be used without redirection, and
adds www to the subdomains that will be redirected.

Which alternative would people prefer I submit as a pull request? Are
there strong reasons neither could work?

www.lag.tv's SSL certificate is valid for lag.tv from what I can see, so
that won't block any action here.

Alex

[1] - https://github.com/andypike/lagtv/issues/289
[2] - https://github.com/ASzc/lagtv/compare/aszc-nginx_www_neutral
[3] - https://github.com/ASzc/lagtv/compare/aszc-nginx_www_redirect

Robert Johnston

unread,
May 11, 2013, 12:04:23 AM5/11/13
to lagtv-...@googlegroups.com
The only issues I can see arising from this is cookie-related.
Currently, cookies are written for www.lag.tv, so changing would mean
the forgetting of login credentials (Which is hardly that much of an
issue, but an issue nonetheless). As SSL is covered (While the
certificate is issued to "www.lag.tv", it has "lag.tv" listed as an
approved alternate, which IIRC will mean it's accepted there), this is
the only real issue.

Personally, I'd set the URL to redirect www. to non (As in #3), but to
preserve any other subdomain. So, perhaps at a later date, the site can
be expanded to include other areas. So, for instance:
http://starcraft.lag.tv, http://minecraft.lag.tv, http://versus.lag.tv,
http://forums.lag.tv and so on.

Oh, and while I'm at it, what's with the goofy forum URLs?
(http://lag.tv/forums/forums/PC seems a little redundant to me. Wouldn't
it be better to have something along the lines of
"http://lag.tv/forums/Platforms/PC"? And using that wonderful rewrite
engine you have to put "http://lag.tv/forums/Platforms/PC/2" instead of
the Query parameter...).

Just a thought.
Reply all
Reply to author
Forward
0 new messages