Re: A patch to keep cache directory out of webroot

"Jason Judge" <[email protected]> Tue, 12 Oct 2004 13:20:57 +0100
Newsgroups gmane.comp.cms.xaraya.patches
Organization Xaraya
Message-ID <[email protected]>
"Jonn Beames" <[email protected]> wrote in message
news:[email protected]...
> mikespub wrote:
> > In article <[email protected]>, Jonn Beames
<[email protected]>
> > wrote:
> >
> >>...
> >>If the "public" var/something/whatever needs to be writable, there's no
> >>point in having a "private" var somewhere else.  What about, instead of
> >>creating an new API and rewriting mods to use it, we rewrite the mods to
> >>support a xarCoreGetVarDirPath() compatible, movable var directory?
> >>
> >> - Jonn
> >
> >
> > Here I'm talking about content that needs to be :
> > a) writeable by the web server,
> > and
> > b) accessible by the web clients
> >
> The exact case we are trying to eliminate.  Unless it does not need to
> be eliminated - see Alla's posts in this thread.

It is not the only case we are trying to eliminate. Note that Alla's post
refers to an incorrectly configured site. We could help here by providing a
htaccess file in the public var directory to disable script running, or to
limit access to certain types of files.

If we don't porivide a standard place to write web-readable files, then
admins and developers will have to create their own. I think everyone going
off and doing their own thing is going to open up far more security holes
than one, well understood, well-explained and well-controlled directory.

> > Public and private wouldn't contain the same stuff - see discussion
> > elsewhere :-)
> >
> > Mike.
>
> I'm not opposed to the idea of public and private var directories, I
> just don't see a value-add.  On the contrary, it seems to add another
> unnecessary complication to xaraya.

Some files simply should not be accessible from the web interface. The user
should not be able to even guess what their URLs are. Those files may be
placed off the web root. The way the current modules are using var indicates
that this is not so much an unnecessary complication, but a required feature
that we are, at last, beginning to tackle.

There may also be different quotas available in different file areas. I have
one host, for example, where the off-site storage quota is quite large, and
the on-site storage is expensive. The option to store the bulk of the files
off the web space, on another disk even, is very attractive.

-- JJ