rack is the tool you are looking for

here's an example setup for rack: you can serve static files under different domain names and mess with the HTTP headers