[gopher] Gophernicus 1.2-beta & virtual hosting

Walter Vermeir walter at wikizine.org
Wed Sep 14 09:00:28 UTC 2011


2011/9/14 Kim Holviala <kim at holviala.com>
>
> On 14.9.2011 2:53, Walter Vermeir wrote:
>
>> I have a support question about Gophernicus - hope that is allowed here;
>
> Here, or just email me directly :-).

Fantastic, the developer himself! You can not do any better ;-)


>>
>> Setup;
>> Ubuntu 10.04 LTS & gophernicus 1.2
>> dynamic ip
>> use xinetd
>
> So my xinetd installer worked? WOOHOO! I never use xinetd...

Well, it is already more then a month ago that I did the server
install ... but I know it was not easy to get that aspect to work.

It seemed that Ubuntu does not use inetd.conf

Than manual says

" If your system comes with something else than standard
inetd make install should have done the right thing already."

 ... but it not worked directly. I have installed xinetd and then run
the installer again. And then it worked.

I was wondering way the default gophermap did not display the config
path. That script assumes the config file is;
/etc/xinetd.d/gopher

But it is;
/etc/xinetd.d/gophernicus

Is that relevant maybe?

> OK. Your servers hostname is apparently "gopherserverubuntu". As in if you type the command "hostname" you'll get that name. As a security precaution you need to have a virtual host directory for your own hostname or all of virtual hosting is disabled.
>

I could not find that in the documentation. If it is not there that
seems me useful to include it.

>
> So, two ways to fix it:
> $ sudo mkdir /var/gopher/`hostname`
>

that is present. To be sure I have removed and created it again with
the command above; no change.

>
> or,
> $ sudo vi /etc/xinetd.d/gophernicus
>
> And the fix the -hwhatever option so that it uses one of your real virtual host names (the primary one). So most likely it should be "-hgopher.wikizine.org".
>

It is currently the  host vermeir.dyndns.org because that is the one
updated by the router making the internetconnection and the most
reliable.

The idea is that it is the primary one and others are virtual.

> Also, now that I think about it you might not even need virtual hosting. You only have one hostname for your gopher server, right? Just place your content under /var/gopher and forget about vhosting....

Yes, that is an option. But "having need of it" is not a factor here.
I do not need to have any gopherserver, it is just for the fun of it.
I am going to put at gopher.wikizine.org the archive and current
edition of my newsletter - but I do not expect any visitors.

And because virtual hosting should be possible I would like to get it
working so I can setup other gophersapace stuff ...

>> /var/gopher does exist
>> "gopherserverubuntu" is the name of the server.  But to make sure, I
>> have also made a directory with that name, no change.
>
> Oh, that I didn't see before I wrote the above. Wait....
>
> [looking through the code]
>
> Are you sure you didn't mistype the directory name when you created it? The code is just stat():ing the directory it was complaining in syslog with no further checking.... Try "ls -la /var/gopher/gopherserverubuntu" and tell me what it says.
>
>
> - Kim

It gives;

walter at gopherserverubuntu:/etc/xinetd.d$ ls -la /var/gopher/gopherserverubuntu
totaal 8
drwxr-xr-x 2 root root        4096 2011-09-14 09:25 .
drwxrwxr-x 8 root gopherspace 4096 2011-09-14 09:25 ..
walter at gopherserverubuntu:/etc/xinetd.d$


Do you think like Brain indicated that the fact I use xinetd and not
inetd could be the problem? - I have only one external ipadress.

Thanks,
Walter



More information about the Gopher-Project mailing list