Re: sharing directories in virtual hosts

Roy Sigurd Karlsbakk <[email protected]>
Newsgroups gmane.network.tux
Organization ProntoTV AS
Message-ID <[email protected]>
try mount -o bind :-)

On Tuesday 20 August 2002 15:53, Herald van der Breggen wrote:
> 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
>
>
>
>
>
>
>
> _______________________________________________
> tux-list mailing list
> [email protected]
> https://listman.redhat.com/mailman/listinfo/tux-list

-- 
Roy Sigurd Karlsbakk, Datavaktmester
ProntoTV AS - http://www.pronto.tv/
Tel: +47 9801 3356

Computers are like air conditioners.
They stop working when you open Windows.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.