Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

You must log in to answer this question.

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