Command to upload 404 files to multiple domains.

prettydumb

Active Member
Aug 25, 2007
35
0
56
When I set up my domains, several thousand of them, I did not include 404 error pages or robots.txt files. My logs show I should also be uploading favicons as well.

I now know I should have set this up as I was entering the domain name into the system.

Is there a command you might share to have these files entered, without having to log into each separate account?

Someone please throw a dummy a bone.
 

jalal

Active Member
Jun 15, 2005
33
0
156
You could probably use a bash script. something along the lines of:

for d in `ls -1 /home`
cp robots.txt /home/$d/public_html
chown $d:$d /home/$d/public_html/robots.txt
next

that's just pseudo code above, you'll have to write and test yer own to do it for real.

HTH