0

I have a Facebook app on my server and I need to run it both at http and at https. Now I have two different folders on my server: httpdocs and httpsdocs. How could I point now from the httpsdocs folder to the "normal" httpdocs folder that contains the files/page?

2 Answers 2

1

The easiest answer is to change the DocumentRoot of the SSL virtual host to the same folder as the non-SSL virtual host. In other words, change httpsdocs to httpdocs in the configuration file.

0

To begin with, you can point both your HTTP and HTTPS vhosts to the same directory - if there are no different files, there is not reason to keep two identical directories.

And, if you really need two separate directories, you can make symbolic links to keep the identical content in sync:

ln -s /var/www/httpdocs/somefileordirectory /var/www/httpsdocs/

You can see man ln for more information.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .