Say I have a minimalist Python web server running with several instances, each with different ports specified as command line arguments.
I'd like requests to my server to be redirected like this, using the Host header:
name1.mydomain.com -> localhost:8000 name2.mydomain.com -> localhost:8001 name3.mydomain.com -> localhost:8002
Is this something best done with a server like Lighttpd and doing some virtualhost configuration - is that possible?
I'd prefer not to use something heavy weight like Apache.