You are viewing a plain text version of this content. The canonical link for it is here.
Posted to infrastructure-issues@apache.org by "Tony Stevenson (JIRA)" <ji...@apache.org> on 2015/03/27 01:07:52 UTC

[jira] [Commented] (INFRA-8977) Let wiki.corinthia.apache.org point at our wiki

    [ https://issues.apache.org/jira/browse/INFRA-8977?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14383007#comment-14383007 ] 

Tony Stevenson commented on INFRA-8977:
---------------------------------------

[~jani@apache.org]

Jan, nope. Sorry. This is wrong. 
I have been doing DNS for nearly 17 years now. Trust me. A CNAME cannot resolve to a URI.  

See:  http://en.wikipedia.org/wiki/CNAME_record

Now, to show you this is wrong - see what happens when I curl your site as casacondor.com 

➜  ~  curl -I casacondor.com
HTTP/1.1 302 Moved Temporarily
Server: nginx/1.0.15
Date: Fri, 27 Mar 2015 00:00:06 GMT
Content-Type: text/html
Connection: keep-alive
Content-Length: 154
Location: http://www.casacondor.com/

Ok, so that's a 302 redirect to www.casacondor.com  - DNS cannot issue a HTTP redirect. It's a different protocol.  But, just to entertain your idea one more step - 

➜  ~  curl -I www.casacondor.com
HTTP/1.1 302 Moved Temporarily
Server: nginx/1.0.15
Date: Fri, 27 Mar 2015 00:00:12 GMT
Content-Type: text/html
Connection: keep-alive
Content-Length: 154
Location: http://people.apache.org/~jani

Again you will see that this is an HTTP 302 redirect.  Your provider is doing stuff under the hood if they let you enter a CNAME entry and this is the behaviour you see as a result.  This is why so many folks do not get DNS, because sadly some providers lets them make 'advanced DNS' changed and suddenly they all feel they are DNS ninja's and can do things like this. 


Further reading, just in case you think I am wrong still   :) 

1 - http://serverfault.com/questions/47175/can-a-cname-dns-record-point-to-a-subdirectory 
2 - http://stackoverflow.com/questions/9444055/using-dns-to-redirect-to-another-url-with-a-path
3 - https://www.ietf.org/rfc/rfc1912.txt
4 - http://en.wikipedia.org/wiki/List_of_DNS_record_types 







> Let wiki.corinthia.apache.org point at our wiki
> -----------------------------------------------
>
>                 Key: INFRA-8977
>                 URL: https://issues.apache.org/jira/browse/INFRA-8977
>             Project: Infrastructure
>          Issue Type: Task
>          Components: DNS
>         Environment: generate.py
>            Reporter: jan iversen
>            Assignee: Tony Stevenson
>            Priority: Critical
>
> Can we please have
> wiki.corinthia.incubator point at cwiki.apache.org/confluence/display/Corinthia
> It seems to be a matter of adding a CNAME to generate.py, but I am not sure that is completely correct, hence the issue.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)