PDA

View Full Version : How-To combine the HTTP and HTTPS directories in Plesk 7.x


eWebtricity
02-09-2005, 07:03 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