I failed then, but I'm ready for next time. To temporarily add a static IP address you simply do (as root):
ifconfig eth0:3 10.10.10.10 netmask 255.255.0.0I'm choosing "eth0:3" for the interface; it can be any unused number after the colon, and you never need to care what this is. netmask can really be anything for our purposes. The 10.10.10.10 is the IP address I've given it. Test with this:
ping 10.10.10.10To set up a quick virtual host create a file under /etc/apache2/conf.d called 10.10.10.10.conf (any filename is fine) with these contents:
<virtualhost 10.10.10.10:80=""> DocumentRoot "/var/www/somewhere" ServerName 10.10.10.10 </virtualhost>
TidyupTo remove just the interface that you added above, use this command:
ip addr del 10.10.10.10/32 dev eth0:3Or, to restore the network to boot defaults (useful if you have done lots of changes) you can do:
ifdown -a ifup -aEither way to then remove the apache config: delete the 10.10.10.10.conf file you created and restart apache.