Web Hosting Talk







View Full Version : Automatically adding more default files


NewonNet
07-14-2001, 08:08 AM
Anyone know how to add more files to a new site automatically?

I looked in the siteAdd.cgi and can't see any files being added. I need to find the script that add index.html.

Thanks in advance.

Chicken
07-14-2001, 12:49 PM
Well, the default welcome page for virtual domains is in:
/etc/skel/group/en_US/web

and I'd modify/add pages there though not certain what you want exactly. Try that unless it really isn't what you are looking for.

NewonNet
07-15-2001, 01:15 AM
Thanks.

What I need is to add another page besides index.htm default page.

example
I want to also add contact.html automatically Can this be done through the raq automatic siteadd?

jks
07-15-2001, 04:06 AM
Originally posted by NewonNet
T
I want to also add contact.html automatically Can this be done through the raq automatic siteadd?

Yes, just add it to the /etc/skel/ directory as noted above. The contents will be copied to the new site, when created.

<<MOD EDIT:>>
You may not post URLs in your posts. Please set up a signature in your profile.
<</MOD EDIT>>

Dim8
07-15-2001, 08:26 PM
So hmm.. if I create a folder called cgi-bin and chmod it to 777 will it carry out that chmod as well? or just create the folder? Whatcha think?

jks
07-15-2001, 09:24 PM
Originally posted by Dim8
So hmm.. if I create a folder called cgi-bin and chmod it to 777 will it carry out that chmod as well? or just create the folder? Whatcha think?

It will chmod it too.

<<MOD EDIT:>>
You may not post URLs in your posts. Please set up a signature in your profile.
<</MOD EDIT>>

NewonNet
07-15-2001, 10:22 PM
Thanks Jens.

How do you upload the files to that dir?

I try using ftp program but file upload was denied. I guess it only allows root access. How would I upload a file from my computer to that dir then?

Thanks for your help.