Virtual Hosts custom structure

svacant

New member
Joined
Aug 31, 2010
Messages
4
Hello,
i have personalized my virtual_host.conf template, apache work fine with new my custom settings but i must make the directory manually.

Example in the vhosts conf apache load:
/home/admin/custom/mysite/public_html

But when i make new domain with DA panel it use old template for directory structure as /home/admin/mysite/public_html and i go to make manually my custom doc root.

Do you know if possible tell to DA make directory automatically?

Thanks a lot!.
 
You have to use the custom scripts. I don't know the exact links but search the forum and knowledgebase for "custom scripts"
 
So the DA use a simple script to make directories, if i know the name of this script file, i can try to modify by myself.

I try to search, thanks for now.
 
So the DA use a simple script to make directories

No it does not. You need to write a custom script to create the directories needed before the domain is added and then delete the ones that are not needed after the domain is added.

That is one way of doing it. There may be others.
 
Ok DA tell Script output: subdomain_create_pre.sh nice!

Edit: i wrote my custom script and work fine but DA make directories in old style..Can i block this directory creation without lose the entry in the DA panel.
 
Last edited:
You need to use subdomain_create_post.sh to delete the old directories.
 
Back
Top