Installing a Symbolic Link in Direct Admin

Trevor

New member
Joined
Jun 10, 2005
Messages
2
Can someone please tell me how to create a symbolic link from https to http or the other way...whatever way it supposed to be. (I have my cart in public..so http) I am using Direct Admin and my host has no clue what Im talking about...it appears that he might be the only host who doesnt know.


Thanks,
Trevor
 
Presuming you've got nothing in private_html and all your code, images, etc., in public_html, you can delete the /home/username/domains/example.com/private_html directory and create a link thusly:

$ cd /home/username/domains/example.com/
$ rmdir private_html
$ ln -s public_html private_html

But you can only do it if you've got shell access to your account. If you don't (most hosting companies do NOT give shell access) your host will have to do it for you.

Jeff
 
trevor, there is another way to do this without symbolic link.

tell your ISP to read this:

http://www.directadmin.com/forum/showthread.php?s=&threadid=7461

read the 2nd post by rldev

although one small correction, remove the code: from the start of the line in step 2 (I think he was trying to use vbulletin formatting)

The line should just be

Step 2 from SSH:
echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue

I just did it now on my server and it works great (although it does affect ALL domains on the server to work this way (i.e. no more private_html as a separate directory for SSL pages))

Thanks rldev!!!
 
Thanks guys...

It appears that my host was able to do the symbolic link...and everything seems to work fine.

Hopefully things go well from here.

Trevor
 
Back
Top