How to configure Hiawatha web server?

Using applications, configuring, problems
Post Reply
Message
Author
leegold
Posts: 11
Joined: Mon 13 Jul 2009, 18:37

How to configure Hiawatha web server?

#1 Post by leegold »

I thought if I type Hiawatha on the cmd line of a Puppy PC and w/another pc on my intranet/home network type the IP of the PC running Puppy and Hiawatha, then I will get served index.html on the other client PC. But instead it can't get the page served. I can ping the Puppy PC Ok but can't get Hiawatha to serve the page. Typing localhost on the Puppy PC brings up index.html - so at least that works.

Wondered if there's anything else besides starting Hiawatha I should do? Using 4.31.

Thanks

User avatar
dejan555
Posts: 2798
Joined: Sun 30 Nov 2008, 11:57
Location: Montenegro
Contact:

#2 Post by dejan555 »

Edit /etc/hiawatha/httpd.conf
Comment the line where it says Interface = 127.0.0.1
then restart hiawatha.
puppy.b0x.me stuff mirrored [url=https://drive.google.com/open?id=0B_Mb589v0iCXNnhSZWRwd3R2UWs]HERE[/url] or [url=http://archive.org/details/Puppy_Linux_puppy.b0x.me_mirror]HERE[/url]

npierce
Posts: 858
Joined: Tue 29 Dec 2009, 01:40

#3 Post by npierce »

Newer versions of hiawatha apparently use /etc/hiawatha/hiawatha.conf instead of /etc/hiawatha/httpd.conf, although the old file is still there. On Puppy 4.3.1 I had to use the new file.

Also, if you are only interested in serving hosts on your local network, not the Internet, and you connect to the Internet via a different host than the one you use to connect to your local network (for instance, if you connect with dial-up), you might consider changing the value of Interface to the address of your local network interface rather than just eliminating the Interface line. That way hiawatha will only accept connections through that interface, not all interfaces. (Of course, if you connect to the Internet via a router on your local network, all traffic flows through the same interface, so it is up to the firewall in your router to block or allow http connections.)

If you do change the Interface line, rather than eliminate it, remember that the localhost URL will no longer work, you'll need to use your Puppy's local network IP address (or the equivalent host name you have assigned it).

A recent post from CoffeaRobusta explains more: How I set up a Hiawatha web server with Puppy

Post Reply