Default document for root

Jason McBrayer jmcbray at carcosa.net
Fri Nov 6 13:27:02 GMT 2020


Garrit Franke <garritfranke at gmail.com> writes:

> I tried it out on several servers using index.gmi, and sure enough
> this seems to be the accepted case. However, this is not part of the
> specification. Maybe I overlooked something, or this is intentional?
> Otherwise, it would be nice to have a small hint to this in the spec.

This is server-defined behavior – how a server maps URLs to files, and
how a server determines the MIME-type of a file, etc. are all up to the
server author. This is the same as with http, actually; it's just that
the conventions for http servers have been established for so long that
we forget they're not part of the standard.

Anyway, the convention for a directory appears to be: serve either
index.gmi or index.gemini if they exist; serve a directory listing if
they don't. But it's perfectly reasonable for a server to not do this,
or make it configurable behavior, etc.

-- 
Jason McBrayer      | “Strange is the night where black stars rise,
jmcbray at carcosa.net | and strange moons circle through the skies,
                    | but stranger still is lost Carcosa.”
                    | ― Robert W. Chambers,The King in Yellow


More information about the Gemini mailing list