• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

httpdocs ant httpsdocs point to one directory

M

meshka

Guest
Hi all,

we are using plesk at rackspace server. So what i need - is that ssl and non ssl would point to the same directory.

I don't need seperate /home/vhosts/domain/httpdocs for non ssl, and /home/vhosts/domain/httpsdocs for ssl, i would like both to point at /home/vhosts/domain/httpdocs

I can override it httpd.include of that domain, but plesk rewrites it again if i do something with the domain. Is there a good way to do that ?
 
Hi,

Use a symbolic link...

(1) Delete your /home/vhosts/domain/httpsdocs directory.
(2) Create a symbolic link:

# ln -s /home/vhosts/domain/httpdocs httpsdocs

(3) Chown httpsdocs:

# chown username:psaserv httpsdocs

Note: You will need to replace 'username' with the domain user for that folder, refer to the username applied to httpdocs.

Thats it...
 
I have a Plesk control panel also but don't know how and where to put those commands to make httpsdos point to httpdocs. Help please !!!
Many thanks.
 
Https

My previous instructions were pretty clear?

(1) Delete your /home/vhosts/domain/httpsdocs directory.
(2) Create a symbolic link:

# ln -s /home/vhosts/domain/httpdocs httpsdocs

(3) Chown httpsdocs:

# chown username:psaserv httpsdocs

Note: You will need to replace 'username' with the domain user for that folder, refer to the username applied to httpdocs.
 
Thanks but I don't know anything about shell scripting and my question was..where do I run that line of code to create the symbolic link?
 
Config

You simply need to login to your server via the shell, adjust the syntax to suit your needs and run it in the bash.

PM me if you want me to do this for you.
 
Thanks a lot. I just found out from another forum there's an option (checkbox) in Plesk that allows you to configure using one folder for both https and http docs, just done that and it's working.
Thanks for your help.
 
Back
Top