SSL / Cross-domain / Images

I'm re-doing a website for the company I work for. We have two domains, www.mydomain.com and support.mydomain.com, the support.mydomain.com subdomain runs on https with a valid ssl certificate.

/home/webserver/www.mydomain.com and /home/webserver/support.mydomain.com 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/support.mydomain.com/images to point to /home/webserver/www.mydomain.com/images? Would that work? I don't have access to apache and therefore can't see it's config files or redo anything with it.

Thanks
NarusegawaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ramazanyichCommented:
if FollowSymLinks is enabled for /home/webserver/support.mydomain.com/images  on apache config   it should not be a problem
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
periwinkleCommented:
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/wwww.mydomain.com/images

0
NarusegawaAuthor Commented:
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.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Web Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.