Custom subdomain folder

webunity

Verified User
Joined
Sep 23, 2014
Messages
50
Yes, another one of those threads.

I think i have thought of a method which allows me to have custom subdomain folders. It consist of 3 things
1) A modified subdomain template (info)
2) A custom subdomain_create_post.sh (info)
3) A custom subdomain_destroy_pre.sh

Basically the workflow would be to (1) modify the template to point to a different document_root (2) to move the (by DA) created directory from public_html and private_html to a new location; e.g. in case the subdomain is called 'test' to 'public_test' and 'private_test' for example and in (3) to move back the directories to their original location if the environment variable 'contents' is set to 1.

How about it, would this work? Now all i need is a setting in DA to specify if i want the subdomain to be created for HTTP, HTTPS or both and i'm golden.
 
I've tried to put your post back together; please add anything I've missed and I'll move it to the first post.

Something you were adding was triggering moderation; I'm not sure why. I don't think it's "double quotes".

Jeff
 
Back
Top