Changed default root directory SSL points to old location
Hi,
I recently came here to know how can i change my default home directory public_html/ to public
And now i learn how, but the ssl certificates points to old folder (public_html)
If i type
open /home/user/public but if i type
open /home/user/public_html/
http://example.com.bropen /home/user/public but if i type
https://example.com.bropen /home/user/public_html/
-
You need to do the same thing you did with the primary userdata file but with the SSL file. So the instructions are the same but the file is domain.tld_SSL For example if the domain I want to change this for is cptest.com I'd modify the cptest.com and cptest.com_SSL files in the following directory: [root@server cptest]# cd /var/cpanel/userdata/cptest/ [root@server cptest]# ls -lah total 56K drwxr-x--- 2 root cptest 4.0K May 17 05:17 . drwx--x--x 22 root root 4.0K May 16 10:14 .. -rw-r--r-- 1 root root 253 Apr 26 15:38 cache -rw-r--r-- 1 root root 282 Apr 26 15:38 cache.json -rw-r--r-- 1 root root 737 May 9 14:33 cptest.com -rw-r--r-- 1 root root 742 May 9 14:33 cptest.com.cache -rw-r--r-- 1 root root 2.2K Apr 26 15:36 cptest.com_SSL -rw-r--r-- 1 root root 2.0K Apr 26 15:36 cptest.com_SSL.cache -rw-r--r-- 1 root root 101 Apr 25 16:23 main -rw-r--r-- 1 root root 100 Apr 25 16:23 main.cache -rw-r--r-- 1 root root 488 May 9 14:33 new.cptest.com -rw-r--r-- 1 root root 513 May 9 14:33 new.cptest.com.cache -rw-r--r-- 1 root root 605 Apr 26 15:36 new.cptest.com_SSL -rw-r--r-- 1 root root 614 Apr 26 15:36 new.cptest.com_SSL.cache
Thanks!0 -
Thank you, it's worked best regards. 0
Please sign in to leave a comment.
Comments
2 comments