Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to create a symbolic link from one website's home to another website's home, so when I go to site1.com it shows content from site2.com?

I've tried a few things but they don't work. The directory structure is /home/site1.com/public_html, which I want to point to /home/site2.com/public_html if someone visits site1.com

share|improve this question

1 Answer 1

You must configure your web server to allow following symlinks; it is usually disabled by default for security reasons.

share|improve this answer
Options +FollowSymlinks in Apache. –  paradroid Apr 9 '12 at 16:29
symlinks are enabled, when i enter the symlink i get directed to the folder from ssh, but not when i goto the site itself. I think i'm getting confused what folder i should be linking. –  Cathal Apr 9 '12 at 16:49
I've added the Options +FollowSymlinks to virtualhost.conf but I think I'm still getting confused with the symlink. I want to point /home/site2.com/public_html to goto /home/site1.com/public_html, what should the syntax be. –  Cathal Apr 9 '12 at 17:44
Ok, its working kinda, now I've got a permissions problem –  Cathal Apr 9 '12 at 17:59

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.