sharing directories in virtual hosts
Herald van der Breggen <[email protected]>
| Newsgroups | gmane.network.tux |
|---|---|
| Message-ID | <[email protected]> |
Hi, I would like share some directories (called photos, images, css and js) over several virtual hosts, so that e.g. http://virtualhost1/photos and http://virtualhost2/photos reflect the same physical directory. I hope you can help me.... It looked simple. In de tux document root I did: mkdir a mv /other/place/photos a mv /other/place/images a etc and in de virtual host document roots: cd virtualhost1 ln -s ../a/photos . ln -s ../a/images . Unfortunately it looks like tux does not handle symbolic links that start with "..", neither symbolic links that start with "/". In the documentation I saw that a security feature is that url's that contains a forbidden substring such as ".." will not be served by Tux. Does this have something to do with this symbolic link behaviour? I thought a using normal links, but there are about 350 virtual sites that should share the same directories and there thousands of file involved. This would make a reliable management of the files difficult. I thought about using outbound links in html (http://photos.virtualhost1/) but there changes to the pages needed for that. What would be a secure way share directories over virtual hosts? Thanks, Herald