Hi Graeme,

> John Carlyle-Clarke wrote:
> > It should just be a case of setting share.gemmill.name as a CNAME to
> > ggemmill.ddns.net.
> >
> > There may be an advanced DNS editor in 1 & 1 that allows this. Note
> > that in DNS terms the "." on the end of the target is important,
> > although their web editor (assuming that is how it's done) may add
> > this for you.
>
> It seems that John is on the right lines,

Yes.

> as 1and1 allows me to enter an HTTP redirect, which I have done as
> "http://ggemmill.ddns.net.,

This is working.

    $ curl -sSI http://share.gemmill.name
    HTTP/1.1 302 Found
    Date: Fri, 22 May 2015 11:29:51 GMT
    Server: Apache
    Location: https://ggemmill.ddns.net
    Content-Type: text/html; charset=iso-8859-1

> with the "." on the end as he suggests.. The 1and1 help text makes no
> mention of the dot.

It's relevant in DNS with the CNAME solution John suggested, not with
HTTP redirects.

> It suggests that the change will take effect "in a few minutes".
> However, although "https://ggemmill.ddns.net/owncloud"; gets me where I
> want to be, neither "https://share.gemmill.name/owncloud"; nor the
> http: version do.

The HTTP redirect is discarding any given path.  See how /foo isn't
present in location.

    $ curl -sSI http://share.gemmill.name/foo
    HTTP/1.1 302 Found
    Date: Fri, 22 May 2015 11:30:03 GMT
    Server: Apache
    Location: https://ggemmill.ddns.net
    Content-Type: text/html; charset=iso-8859-1

Perhaps they offer a way to carry that over.

And 1and1 don't appear to give you a HTTPS service.

    $ curl -sSI https://share.gemmill.name
    curl: (7) couldn't connect to host

If you want to persist with the HTTP redirect then how about hosting
http://owncloud.ggemmill.ddns.net and have that bounce visitors on to
https://ggemmill.ddns.net/owncloud, then have 1and1 turn
http://share.gemmill.name/anything into
http://owncloud.ggemmill.ddns.net where the discard doesn't matter.

Or, backtrack, and give John's simpler and more efficient CNAME solution
a try.  :-)
http://help.1and1.com/domains-c36931/manage-domains-c79822/dns-c37586/enter-a-cname-record-for-your-domain-a643600.html

Cheers, Ralph.

--
Next meeting:  Bournemouth, Tuesday, 2015-06-02 20:00
Meets, Mailing list, IRC, LinkedIn, ...  http://dorset.lug.org.uk/
New thread:  mailto:[email protected] / CHECK IF YOU'RE REPLYING
Reporting bugs well:  http://goo.gl/4Xue     / TO THE LIST OR THE AUTHOR

Reply via email to