If you're not changing this vhost (other than the content), isn't this going to try and write a file to the exact same path as the directory above (and thus fail as the name is use)?