PDA

View Full Version : How-To combine the https and http document root directories in Plesk 7.0


eWebtricity
08-28-2005, 02:19 AM
This will allow you to combine the /home/httpd/vhosts/domain.com/httpdocs and /home/httpd/vhosts/domain.com/httpsdocs directories together as one.

Go to the domain's home directory:
cd /home/httpd/vhostsdomain.com

Move existing httpsdocs:
mv -f httpsdocs httpsdocs.old

Create a symbolic link:
ln -s httpdocs httpsdocs

Change Apache config to allow symlinks - to do this create a new file called "vhost_ssl.conf" inside the domain's conf directory and put something like following into this file:
<Directory /home/httpd/vhosts/domain.com>
Options +FollowSymLinks
</Directory>

Resonfigure and restart Apache:
/usr/local/psa/admin/sbin/websrvmng -a -v

Or just go through the control panel Servers > Service Management > Restart Apache

shunter045
06-01-2006, 07:34 AM
will this same setup work on Fedora Core 4 and Plesk 8?

sholzy
06-01-2006, 06:01 PM
It's already in Plesk 8. It's in the hosting setup page for the domain under preferences. Checkmark the box that says "Use a single directory for housing SSL and non-SSL content" and it's done.