This is a discussion on Document search path? within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello, is there a way to define several directories in a server machine's file system to look up for ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello,
is there a way to define several directories in a server machine's file system to look up for documents, that is, have several "document roots" so to say? At the moment I am using a directory filled with both files from an svn repository and a few thousand simlinks (actually just linking the directory they contain). Because we need to seperate the svn files from the non-svn files, and for file system performance we need to split this up into several directories. But that would mean Apache needed to somehow look up at least one more directory if the file was not found in document root. Can anyone give me a hint how to do that? Björn |
|
|||
|
Davide Bianchi schrieb:
> On 2008-05-27, Björn Keil <abgrund@silberdrache.net> wrote: >> is there a way to define several directories in a server machine's file >> system to look up for documents, that is, have several "document roots" >> so to say? > > No, since each system/vhost can have only ONE 'root'. > >> Can anyone give me a hint how to do that? > > I think you're trying to hammer a nail with a shoe or to walk on an > hammer, what you need is obviously not a web server but a document > management system. > > Davide > What I need is two directories to look documents up from; no more, no less. No complicated management system. |
|
|||
|
Davide Bianchi schrieb:
> On 2008-05-27, Björn Keil <abgrund@silberdrache.net> wrote: > > I think you're trying to hammer a nail with a shoe or to walk on an > hammer, what you need is obviously not a web server but a document > management system. > > Davide > And spare me with your thoughts in future if you got no understanding of the problem at hand and no answer to the question asked. |
|
|||
|
"Björn Keil" <abgrund@silberdrache.net> schreef in bericht
news:g1h2og$33f$01$1@news.t-online.com... > Hello, > > is there a way to define several directories in a server machine's file > system to look up for documents, that is, have several "document roots" so > to say? > > At the moment I am using a directory filled with both files from an svn > repository and a few thousand simlinks (actually just linking the > directory they contain). Because we need to seperate the svn files from > the non-svn files, and for file system performance we need to split this > up into several directories. But that would mean Apache needed to somehow > look up at least one more directory if the file was not found in document > root. > > Can anyone give me a hint how to do that? > Just a hint then RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -!f RewriteRule /root1/(.*) /root2/$1 Less than 2ct Hans |