[Apache+XSP] Fix hashing and --random-port