SSL / Cross-domain / Images

Posted on 2004-11-22
Last Modified: 2012-05-05
I'm re-doing a website for the company I work for. We have two domains, and, the subdomain runs on https with a valid ssl certificate.

/home/webserver/ and /home/webserver/ are the absolute folders for these 2 domains. Both share the same unix user account information.

To save space and be more efficient in general with the site, as several images are used on both that are the same. So rather than duplicate the image files in both webspaces can I link between them? Normally this is straight-forward but with SSL this will give a warning won't it? About using unsecure content on a secure webpage. If so can I prevent this?

What if I create a symbolic link from /home/webserver/ to point to /home/webserver/ Would that work? I don't have access to apache and therefore can't see it's config files or redo anything with it.

Question by:Narusegawa
    LVL 19

    Accepted Solution

    if FollowSymLinks is enabled for /home/webserver/  on apache config   it should not be a problem
    LVL 15

    Expert Comment

    Ramazanyich is correct;  as long as FollowSymLinks is enabled, the symbolic link will work.

    However, there's another potential solution, which is to create an Alias for that directory within your httpd.conf or .htaccess file:

    Alias /images /home/webserver/


    Author Comment

    Thanks Rama. I thought the SSL would've been an issue but it's not. Luckily my host allows me shell access to create the symlink and they have FollowSymLinks turned on.

    If they didn't, then I'd be out of luck.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
    If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now