mmerlin
Verified User
I bought an SSL cert for my domain https://ecoms.com/
I wanted the SSL to work for the public_html directory instead of the private_html directory.
Thanks to a very informative post by BigWil
I made the required modifications to the first 2 lines of
virtual_host_secure.conf
Excellent we are up and running!
https://ecoms.com/
is then working from the public_html directory
Then doing a bit of thinking I thought, how can I share this SSL cert with my customers own directories/files
And here is what I came up with
I create a "soft" symlink called clientdomain.com in the ecoms directory
e.g.
cd /home/ecoms/domains/ecoms.com/public_html/
ln -s /home/clientuser/domains/clientdomain.com/public_html clientdomain.com
now in the browser we can go to
https://ecoms.com/clientdomain.com/
and it all works just great!
The only caveat I found is if clientdomain.com is using frames and the frame targets are referencing pages on their own website explicitly then you get a warning message in your browser.
But so long as clientdomain.com is using single pages and not frames, then it seems to work fine.
Note, although this example uses
https://ecoms.com/
it could just as easily be
https://www.ecoms.com/
or
https://secure.ecoms.com/
depending on what you nominated as the hostname for your SSL certificate when you purchased it, and ensuring you create the soft symlink in the correct directory that the SSL cert is working from.
Hope this helps someone out there
I wanted the SSL to work for the public_html directory instead of the private_html directory.
Thanks to a very informative post by BigWil
I made the required modifications to the first 2 lines of
virtual_host_secure.conf
Excellent we are up and running!
https://ecoms.com/
is then working from the public_html directory
Then doing a bit of thinking I thought, how can I share this SSL cert with my customers own directories/files
And here is what I came up with
I create a "soft" symlink called clientdomain.com in the ecoms directory
e.g.
cd /home/ecoms/domains/ecoms.com/public_html/
ln -s /home/clientuser/domains/clientdomain.com/public_html clientdomain.com
now in the browser we can go to
https://ecoms.com/clientdomain.com/
and it all works just great!
The only caveat I found is if clientdomain.com is using frames and the frame targets are referencing pages on their own website explicitly then you get a warning message in your browser.
But so long as clientdomain.com is using single pages and not frames, then it seems to work fine.
Note, although this example uses
https://ecoms.com/
it could just as easily be
https://www.ecoms.com/
or
https://secure.ecoms.com/
depending on what you nominated as the hostname for your SSL certificate when you purchased it, and ensuring you create the soft symlink in the correct directory that the SSL cert is working from.
Hope this helps someone out there
