Listed on

Proxying internal websites via OS X Server

Proxying internal websites via OS X Server



After rearranging my network to use an OS X server for my main web server there were a few web based systems that I need to expose to the outside world. The advice on Reverse Proxy with macOS Server (http://stationinthemetro.com/2017/05/02/reverse-proxy-with-macos-server) by Mark Boszko worked for me. Read More...

Python Serving HTTPS with CGI

One of the claims often made about Python is that it is so easy to extend the language and change the behaviour of an object. The classic example of this is turning the standard library http server into an https server. Unfortunately, although there are hundreds of examples on the web about how to do this - made even more numerous by the move to Python 3 - days of testing here failed to get them to work with CGI scripts. Ordinary pages worked fine, but CGI would fail silently. Apparently these same examples worked on PCs.

The problem turned out to be a quite subtle implementation difference between the Mac and Unix handling of CGI processes and the PC approach in the Python library. Read More...

Range Inputs and Events

The range input looked perfect for writing a web interface to control volume levels on a batch of play out boxes. However, the initial choice of the onChange Javascript event turned out to be both naive and unworkable when tested on an iPad under Mobile Safari although it appeared to work well enough for a mouse driven interface. The better solution was to use two events: onMouseUp and onTouchEnd. Read More...

Open - Apple's little secret

OS X’s open command is the secret sauce for gluing web control panels to OS X applications. Read More...