Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make chat.js.org link to https://chat.stackoverflow.com/rooms/17/javascript #1898

Closed
7fe opened this issue Apr 9, 2018 · 9 comments
Closed
Labels

Comments

@7fe
Copy link
Contributor

7fe commented Apr 9, 2018

So the title says it all.

If it is okay I would like to make at least temporarily the chat.js.org subdomain link to https://chat.stackoverflow.com/rooms/17/javascript

The room is likely the most actively used chat at least currently in the world.

@indus indus added the question label Apr 10, 2018
@indus
Copy link
Member

indus commented Apr 10, 2018

I'm not sure this is possible. I'm not providing redirects but "only" CNAME based DNS records (FYI: http://totaluptime.com/kb/whats-the-difference-between-a-cname-and-a-web-redirect/). The target has to support this as well to make it work and I haven't found any hint that stackoverflow does support CNAMEs

@7fe
Copy link
Contributor Author

7fe commented Apr 10, 2018

I can do a HTML header redirect on my end.

https://stackoverflow.com/questions/5411538/redirect-from-an-html-page

@indus
Copy link
Member

indus commented Apr 10, 2018

and to what page do you want to redirect? As I said the server/host/service has to support CNAMEs to make this work.

@indus
Copy link
Member

indus commented Apr 10, 2018

A CNAME record in JS.ORGs zonefile can redirect any requests for "chat.js.org" to "chat.stackoverflow.com" but the server of chat.stackoverflow.com also has to accept that a incoming request that with an "foreign" domain. Also it has to know that it should deliver specific content that normally belongs to one of its paths (/rooms/17/javascript). Thats what [GitHub pages}(https://help.github.com/articles/using-a-custom-domain-with-github-pages/), Netlify, Surge.sh and others do. But I don't think that stackoverflow can handle CNAME based requests. Maybe I'm wrong - but then you have to provide me a link with some informations how to configure a custom domain in stackoverflow.

@7fe
Copy link
Contributor Author

7fe commented Apr 10, 2018

Simple create CNAME index.html page on GitHub with the following

<!doctype HTML><meta http-equiv="refresh" content="0; url=https://chat.stackoverflow.com/rooms/17/javascript" />

I'll create a page later and create a pull request .

@7fe
Copy link
Contributor Author

7fe commented Apr 10, 2018

@indus the issue right now is that chat(s) is/are reserved domains. I have made a pull request requesting the use of this domain for the SO chat room.

@MadaraUchiha
Copy link

@limeblack We have a server ready to accept the CNAME and requests from the correct host, the redirecting is on us from our end :)

@indus
Copy link
Member

indus commented Apr 11, 2018

when you say redirect - does that mean that that the URL "chat.js.org" will stay in the users adressbar or does your server make a redirect that forces the user to a new URL. I'm not supporting the latter, as I said (there is just no benefit for JS.ORG if it is just an alias or secondary entry point) - otherwise I am really willing to give it a try. Then I would need the adress of the server. Or is the server you are talking about directly hosting "chat.stackoverflow.com"?

@7fe
Copy link
Contributor Author

7fe commented Apr 11, 2018

If you are not supporting a redirect then I will close the issue. Frankly the domain likely will not be used for any specific project because it a general ‘chat‘ link doesn't make sense so I figured a general redirect would be acceptable. Would you support a redirect for chatso.js.org?

@7fe 7fe closed this as completed Apr 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants