symlink as default

urgido

Verified User
Joined
Oct 28, 2008
Messages
429
Location
MX
Is there a way to put symlink as default on packages with SSL option enabled?



Note: I was following some steps that say me that I need to re-write some httpd files but this is complicated because ever that DA is upgraded our team need to re-write the conf files and is hard to do this, by this way we want a simple solution.



Regards
 
I have no clue what your question is. Symlink of what?
 
I believe he is asking if there is a way to set the link from private_html(SSL) to public_html as default for sites that you select SSL for. It's off by default and you have to manualy turn it on for each site that uses SSL.
 
Create a file called /usr/local/directadmin/scripts/custom/user_create_post.sh

Put the following in it:

Code:
#!/bin/sh

|*if SSL_ON="yes"|

rm -rf |HOME|/private_html
ln -s |HOME|/private_html |HOME|/public_html

|*endif|
 
Back
Top