Re: sharing directories in virtual hosts
Herald van der Breggen <[email protected]>
| Newsgroups | gmane.network.tux |
|---|---|
| Message-ID | <[email protected]> |
I still hope someone can give me a solution how to make the symlinks that start with "../" work, that would be an ideal solution. In the mean time I worked with the solution that Roy suggested (thanks Roy!). It's easy to mount a subdirectory with mount --bind olddir newdir and you can even put it in /etc/fstab. In my case a line like this: /www/html/a /www/html/london/a none bind 0 0 So I think (have not tried yet) that these mounts will be done automatically after a reboot. But since I have to do this for hundreds of virtual hosts this solution has its price. Commands like "df" will give a lot of output and I'll have to keep /etc/fstab in sync with the document root of Tux. Besides I don't know how efficient such a solution is, with hundreds of mounting points.... Other ideas are much appreciated! ;-)