HTTPS options with DirectAdmin

GiantComm

New member
Joined
Feb 8, 2006
Messages
3
Location
UK
I am in the process of choosing a control panel for a dedicated server to supply a hosted ecommerce service.

My concerns are that some control panels have a separate secure folder from the non-secure folder. Is this the case for DirectAdmin?

If there are separate folders for secure and non-secure, is it easy enough to implement symlinks so that I can store 1 instance of the shopping cart in just one folder?

Also, from an admin point of view - can DirectAdmin be setup to do the above by default?

Thanks in advance for your feedback.
 
Yes, DirectAdmin has two seperate directories for secured and unsecured (private_html and public_html).

There are also a couple of ways around this. You can do it the symlink way and use the script that runs after a domain is created to do it automatically for future domains, or you can make the configuration changes to the httpd.conf template files form the get go so only one directory is required.
 
Thanks for the response jmstacey.

Thats sound fine - have you done this yourself (just out of curiousity)?
 
I have done symlinks once in awhile on a case by case basis. I have not set it up to be automated, but it is simple to setup. Just add the shell commands to the appropriate file and you should be set.
 
Am I missing something, but in the domain configuration page of DA, there is an option to use a symlink instead of a separate directory.

I know, 'cos I clicked it for a new domain and it popped up a warning 'this will trash exiting files in private_html folder'. I don't know about default, but it is a click away even after install (as private_html will be empty).
 
v1.26.2

Go to user level, select your domain, click Domain Setup, select your domain again (annoys me that does), at the bottom of the page are 2 radio buttons:

The second one says "Use a symbolic link from private_html to public_html - allows for same data in http and https"

These options are greyed out if SSL is not checked for the domain.
 
What do you know, there it is.
Your right, it would be nice if it was displayed when first creating the domain in the first place.
 
how can i make this the default behavior? to have it use public_html?

i think most users expect public_html to be also as their ssl ....

anyone?
 
Whether or not new users would expect public_html to also be their secure http directory would depend on where they're coming from; Plesk, a very common control panel, has always had a separate default directory for secure http.

Currently this is not an available option. You can probably create a script to be run after a domain is created, which would delete the directory and add the link.

You might also be able to make a change to your Welcome eamil to explain which directory is which.

Jeff
 
If you want it by default, create:

/usr/local/directadmin/scripts/custom/domain_create_post.sh

with the following
Code:
#!/bin/sh
cd /home/$username/domains/$domain
rm -rf private_html
ln -s public_html private_html
exit 0;
save,exit, chmod it to 755.

John
 
This is how I do it:

Code:
#!/bin/sh
#Setup a link from private_html to public_html
DIR=/home/$username/domains/$domain
cd $DIR
rm -rf private_html
ln -s ./public_html private_html
chown -h $username:$username private_html
exit 0;
 
Back
Top