1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice

httpdocs ant httpsdocs point to one directory

Discussion in 'Plesk for Linux - 8.x and Older' started by meshka, Feb 20, 2005.

  1. meshka

    meshka Guest

    0
     
    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 ?
     
  2. md3vxx

    md3vxx Guest

    0
     
    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...
     
  3. meshka

    meshka Guest

    0
     
    Simple as that :)

    Simplicity :)

    Thanks !
     
  4. royald

    royald Guest

    0
     
    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.
     
  5. md3vxx

    md3vxx Guest

    0
     
    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.
     
  6. royald

    royald Guest

    0
     
    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?
     
  7. md3vxx

    md3vxx Guest

    0
     
    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.
     
  8. royald

    royald Guest

    0
     
    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.
     
Loading...