On Wed, Aug 20, 2014 at 3:50 PM, Andrew Pennebaker
<andrew.pennebaker@gmail.com> wrote:
>
> If we can't control htaccess settings, we can still add an index.html file that redirects to www.vim.org.
>
> Example:
>
> http://stackoverflow.com/a/5411567/350106
Without a DNS A record pointing to *something*, there's no way to
serve anything for `vim.org` without client-side modifications.
> Given that vim.org is hosted on SourceForge, we could even redirect to the SourceForge project page. That would still be better than 404'ing.
I haven't checked, but presumably SourceForge's hosting has the same
issue as Heroku at this point with hosting apex domains (i.e. there's
probably not a stable IP or set of IPs to point to¹, and you can't
CNAME an apex domain²).
I forgot that I did this last time the issue came up (three years ago,
uggh), but I still have a redirector set up and ready to go. Point
`vim.org` to 64.130.10.15 and it'll work. There's nothing to say an
apex domain has to be hosted at the same server as `www`.
e.g.
```
$ curl --resolve vim.org:80:64.130.10.15 -i
'http://vim.org/whatever?with-params'
HTTP/1.1 301 Moved Permanently
Date: Wed, 20 Aug 2014 20:08:37 GMT
Server: Apache/2.2.27
Location: http://www.vim.org/whatever?with-params
Content-Length: 247
Content-Type: text/html; charset=iso-8859-1
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a
href="http://www.vim.org/whatever?with-params">here</a>.</p>
</body></html>
```
--
Best,
Ben
¹: https://devcenter.heroku.com/articles/apex-domains - can't use A
records for apex domains on Heroku
²: http://blog.dnsimple.com/2011/11/introducing-alias-record/ - why
ALIAS/ANAME records were created
https://support.cloudflare.com/hc/en-us/articles/200169056-Does-CloudFlare-support-CNAME-APEX-at-the-root-
- CloudFlare handles apex CNAMEs (in opposition to RFCs)
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment