HtmGem is Php program whose goal is to make Gemini files reachable through HTTP. It can be used on a shared host. https://gmi.sbgodin.fr/htmgem
Go to file
Christophe HENRY 11ced8627b Shows nothing if index.gmi is not present 2021-03-09 02:11:29 +01:00
tests wip 2021-03-05 22:38:43 +01:00
.gitignore WIP 2021-03-02 23:35:53 +01:00
COPYING Ready for alpha 2021-03-01 15:22:22 +01:00
README.md Replaces preg_replace by mb_ereg_replace 2021-03-04 21:22:41 +01:00
TODO Adds 404 page 2021-03-09 01:48:10 +01:00
htmgem.css Adds emojis according to links type 2021-03-08 16:59:17 +01:00
index.gmi Shows nothing if index.gmi is not present 2021-03-09 02:11:29 +01:00
index.php Shows nothing if index.gmi is not present 2021-03-09 02:11:29 +01:00

README.md

HtmGem

This program aims to provide access to Gemini pages through a web server.

Its in alpha: advanced features available soon.

Usage

Place "htmgem.php" on the root of your webserver.

Your "page.gmi" is reachable using [http://thesite/htmgem.php?directory/page.gmi] with HTML markup:

URL Rewriting

With Nginx, you can use:

rewrite ^(.+\.gmi)$ /htmgem.php?url=$1 last;

Install

php-mbstring is required

So the page is available at [http://thesite/htmgem.php/directory/page.gmi].