in SSL, how to make, symlink to public_html be the default behavior of all new users?

lkbryant

Verified User
Joined
Aug 16, 2005
Messages
283
hi,
it seems all the users that signs up have their ssl folder set to private_html.
how can i make it so that by default, symlink -> public_html be the default to all the new users that gets created?

i am on the latest da, and latest apache / php via custombuild
 
Ok it's in Domain Management -> Click the domain -> look at bottom of page

Yea I was looking too
 
Last edited:
Open /usr/local/directadmin/scripts/custom/user_create_post.sh using vim or nano:
Code:
nano /usr/local/directadmin/scripts/custom/user_create_post.sh

And add this code:
Code:
#!/bin/sh
ln -sf /home/$username/domains/$domain/public_html /home/$username/domains/$domain/private_html

Click ctrl+x and save, then do:
Code:
chmod 755 /usr/local/directadmin/scripts/custom/user_create_post.sh
 
Should it be? That depends on your expectation, which may be based on what you've used in the past.

Certainly a separate directory for https connections is a lot more secure because then users can't accidentally log into pages insecurely that should only be logged into securely.

Jeff
 
Back
Top