Document search path?

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-27-2008
Björn Keil
 
Posts: n/a
Default Document search path?

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
  #2 (permalink)  
Old 05-28-2008
Björn Keil
 
Posts: n/a
Default Re: Document search path?

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.
  #3 (permalink)  
Old 05-28-2008
Björn Keil
 
Posts: n/a
Default Re: Document search path?

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.
  #4 (permalink)  
Old 05-28-2008
HansH
 
Posts: n/a
Default Re: Document search path?

"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


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 10:19 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0