jgoerzen / pygopherd

Multiprotocol Gopher/Web Server [Python]
GNU General Public License v2.0
170 stars 25 forks source link

Hostname issue #6

Open jesperbakhandskemager opened 4 years ago

jesperbakhandskemager commented 4 years ago

When not having a gophermap file, and simply refer to a directory the directory will load fine. But when trying to download something from the directory, it redirects users to the hostname of the server instead of the domain name.

Is there a way to fix this? I couldn't find anything in the config.

qunka commented 4 years ago

The servername option in pygopherd specifies the domain name added to internal links. This option does not specify where the server listens, only how internal links should be handled.

tomowad commented 3 years ago

This happens if the FQDN is not set correctly in /etc/hosts