View Full Version : setting the SSL directory to public_html
prophecy
08-07-2003, 06:47 PM
So I'm setting up my sites and I find that DA sets the SSL directory to private_html. Now the most common setup for a website is to have everything in one directory and you just point to https when you want secure. Having a separate directory is uncommon at best.
If this must be done like, at least give us the option to use private_html or leave in public_html.
jdlitson
08-07-2003, 07:40 PM
Hi,
John has helped me with this.
Here is what you can do.
If you don't have any files in your private_html folder, the easiest solution would be to create a sym link from private_html to public_html by doing the following:
cd /home/username/domain.com
rm -rf private_html
ln -s public_html private_html
diversq
03-23-2004, 11:08 AM
Im trying to do excatly the same thing I go to the domain that I need to change and type:
"ln -s public_html private_html"
im not typing the quotes just whats in between them.
and i get -bash: In: command not found
What am I missing?
Thanks
Jay
jlasman
03-23-2004, 11:28 AM
That's a lower case "L", not an upper case "I".
"ln" is unix shorthand for "link" :) .
Jeff
DirectAdmin Support
03-23-2004, 11:29 AM
It's ell enn... not eye enn
LN and not IN (but lower case)
actual syntax is: ln (all lower case)
:)
John
diversq
03-23-2004, 11:44 AM
lol or would it be ioi anyway thanks alot for the answer
diversq
03-23-2004, 11:48 AM
do I need to restart the server or any processes after creating the link?
also will I get any conformation code or response in putty that lets me know it worked?
last but not least is there a way to list all sym links that are in effect in case I want to remove it?
DirectAdmin Support
03-23-2004, 11:59 AM
Hello,
A restart should not be needed.
It won't say anything if it worked. You can double check your settings by running:
ls -l
(ell ess dash ell :))
drwxr-xr-x 2 root root 4096 Nov 1 00:20 logs
lrwxrwxrwx 1 admin admin 11 Mar 23 13:59 private_html -> public_html
drwx--x--x 3 admin admin 4096 Jul 16 2003 public_ftp
drwxr-xr-x 3 admin admin 4096 Jul 16 2003 public_html
drwxr-xr-x 2 root root 4096 Jul 17 2003 stats
to dump out all symlinks, you can just run:
ls -Rl /home/*/domains/* | grep lrwxrwxrwx
Just copy/paste that command as it would take a while to spell out phonetically :D
John
ProWebUK
03-23-2004, 01:59 PM
Originally posted by DirectAdmin Support
(ell ess dash ell :))
sounds like another language :)
Originally posted by jdlitson
Hi,
John has helped me with this.
Here is what you can do.
Hi,
First time here. I understand your post here but I do not have access to SSH. Is it possible to do the same via the DA reseller or user interface?
GranTW
06-04-2006, 02:24 AM
Hi,
Goto your "User" panel and then if click domain administration then click the domain you want to link private_html to the public_html and if you have Secure SSL enabled you should have the option just underneath.
Regards,
Grant
Originally posted by GranTW
Hi,
Goto your "User" panel and then if click domain administration then click the domain you want to link private_html to the public_html and if you have Secure SSL enabled you should have the option just underneath.
Regards,
Grant
Hello Grant,
Thanks for taking the time to reply my post. Very much appreciated. Have a good day.
puma75
07-19-2006, 03:13 AM
Hi,
This sym link works for me if I browse by ip eg.
https://1.2.3.4/
but not when by domain name
https://www.mydomain.com/
I guess this is nothing to do with the symlink itself but where do i configure this to work?
Thanks
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.