• Updated 2023-07-12: Hello, Guest! Welcome back, and be sure to check out this follow-up post about our outage a week or so ago.

Web server for Macintosh 512K

mactjaap

Well-known member
I have a wish list.....

- Make it possible to do a HEAD request, so you can check if a file is there

- Name and version of the server in this HEAD request.
- Some kind of server status; amount of requests, uptime,etc

- Make some interaction with the OS possible, like time and date showing, file listing, etc

- A big one....Make it possible to upload files.....

 

mactjaap

Well-known member
Version 0.7 really works beautiful!

I now get correct headers and can read a head request!

I put it on the Internet and tested

http://128k.macip.net/
 
GET / HTTP/1.1
Host: 128k.macip.net
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
Cache-Control: max-age=0
 
HTTP/1.0 200 OK
Server: lwIP/1.3.1 (http://savannah.nongnu.org/projects/lwip)
Content-Type: text/html
 
Can't get it going on minivmac with serial support....
Don't know how to get the pppd started well on my virtual Debian....
 
 

epooch

Well-known member
minivmac should start pppd if your ttyprog.sh is configured correctly.  do you get any errors in syslog?

also, I noticed that I am not seeing all of the html.:

This is made possible by the lightweight TCP/IP stack
        <a href="htt[Connection closed by foreign host.]
Does the file really stop there or is the server stopping early?

 

mactjaap

Well-known member
YES!!!!!!!!!! 07.1 does the trick! Now the whole page loads.

Thanks for the update.

Server is live at:

http://128k.macip.net/

I will PM you about my ppp setup for minivmac. It is driving me mad..... I'm debugging now and it seems that the pppd is restarting over and over... Als when I just ask which tty I'm on( remove the pppd part and just run command  tty  )  it loops between /dev/pts/2 and /dev/pts/4. Now way of binding it to just one pts....

Maybe I ca start pppd with one ling command?

Like:

pppd /dev/pts/2 9600 etc etc

I asked the maker of this minivmac version, but he just uses slirp and don't know what to do.... OK I come back on this by PM.

 

mactjaap

Well-known member
I'm testing new possibilities with El Whip now. Connected the 512K Mac with LocalTalk and mounted a share.

I'm running it from a mounted drive on my MacIPgw virtual machine. This has Netatalk on board. The .html files are on this share so there is endless space and... the possibility of using scripting. As an example I generate a simple page every minute which gives the current date and time. Just to understand the idea.

The server is still running on the 512K Macintosh

Have a look at:

http://128k.macip.net/date.html

This is the simple script, date.sh:

echo "<html>" >  "/AppleShare/ElWhip 0.071/date.html"

echo "<body>" >> "/AppleShare/ElWhip 0.071/date.html"
echo "`date`">> "/AppleShare/ElWhip 0.071/date.html"
echo "</body>" >> "/AppleShare/ElWhip 0.071/date.html"
echo "</html>" >> "/AppleShare/ElWhip 0.071/date.html"
 
Run it in crontab
 
* * * * * /bin/sh "/AppleShare/ElWhip 0.071/date.sh"
 
 

epooch

Well-known member
Cool! The lwip http server does have some support for SSI (server side includes), which I disabled due to memory issues. However, I have saved a lot of ram since I started, so I will give it a try it again. Date/ time would be a good first test.

 

gavo

Well-known member
wow, sorry, I meant WOW!!

Well done, that is an awesome achievement. I havent been around here for a while so have only just learnt of your awesomeness today. I was truly blown away. I'm pretty sure that in past discussion about being able to do something like this on a 128k Mac using Mac OS, the idea was dumped in the "impossible" basket.

Excellent work. I look forward to taking some time to read through your blog (not that I'll be able to understand all the technical bits!).

Cheers,

 

68k family

Well-known member
This is very impressive! Best I have ever done was running Eudora on a workgroup server 60 in the late 90's to provide email for almost 1,000 users. I massaged that machine to run it flawlessly until I just couldn't expand the ram to keep up with the traffic - much less have enough storage or disk speed. I wound up converting that machine into a web server with web star and used it for that purpose into the early 2000's - without any trouble. Never occurred to me to try it on a machine still old. I do know of a company with over 150 workstations that still uses a IIci as a DNS and print server.

 

mactjaap

Well-known member
YES! It is brilliant, but I would like to know how many people succeeded to get it up and running?

I did, but I'm a hard core fan of Macs and web servers!

 

SE30_Neal

Well-known member
I am really impressed, ive been wanting an old mac as a pet project for a while as i had a colour classic at art college back in 1993 so took the plunge and brought an ae/30 off ebay only this week, delivered friday, it has a pds network card not that ive managed to do anything with it yet, especially as i hadnt concidered that the system 7.1 hfs format wasn't compatible with my mac mini (with usb floppy drive) so ive not managed to get any software on to it including the network card driver so i can tell this project is going to take some time and research so im evenmore impressed that you got a 512 setup as a server ;)

 

Elfen

Well-known member
There are two books (out of print by now) which answers the questions about providing Web/Internet Service through the Mac OS.

PISM - Providing Internet Services via the Mac OS by Carl Steadman, Jason Snell.

Amazon has it used but I do not know of the CD is with it: http://www.amazon.com/Providing-Internet-Services-Via-Mac/dp/0201489988

Webmaster Macintosh: How to Build Your Own World-Wide Server. Without Really Trying. By Bob Levitus, Jeff Evans.

Amazon has it used but I do not know of the CD is with it: http://www.amazon.com/Webmaster-Macintosh-Architecture-Interfacing-Techniques/dp/B000OH7VCE

Both books are supposed to have a CD of Web Services software from Email to WEB and everything in between for both System 6 and System 7. A minimal machine would be a Mac Plus, though with a tight System 6 you could get it to work on a Mac 512Ke on a floppy drive.

Not knocking what those did here. I think it's great. But there is a a lot to do and figure out and these two books explain everything! They are from around 1995, when the Internet was small.... I remember those days!

 

mraroid

Well-known member
I just read about this:

http://colorclassic.dyndns.org/

I have a few older Macs in house. It would be fun to run server software on one of them... 

Back in the late 1980s and early 1990s I ran a dial up BBS on the Fido network.  After the WWW was invented, many of us left the dial up fido world and built web servers.  My first server ran on FreeBSD.  After that it was linux (no GUI interface), then I moved to Red Hat.  After that, I found that just about every time I did a security update I would break something.  I even lost a girlfriend over it.  I was running majordomo to give some folks free users groups.  I came home one night to find my server down.  I wanted to fix it because I had so many people out of service.  But my girlfriend at the time thought I needed to spend the evening with her....  Anyway, I have forgotten what little I knew about linux. 

I have about 90Mbps up and about the same down.  I have the Mac I am going to use connected via ethernet. It is a Color Classic II and I might update it with a 575 logic board.

I just down loaded MacHTTP 2.6  I am doing a fresh install of 7.6.1 on a partition of the hard drive (SCSI2CF) in my Color Classic II.  After that is installed and updated, I will try to install MacHTTP 2.6 and see how far I get.

A few questions......

Do I need a static IP address to do this?  I thought I read someplace that a work around was available for dynamic addressing - I think this was in the windows world... 

Do I need to buy a domain name?  I think I still own one - I have had it for maybe 6/8 years now... But the name I own is not at all related to my 68K Mac hobby.....

Any tips appreciated.  I do not know what I am doing so I am just jumping in feet first...

mraroid
 
Top