On Tue, 2009-11-17 at 19:37 -0800, Robert D. Penny wrote:
Of course, when I said I could do this:
> I can
>
> ./genxref --url=http://localhost/lxr/source/metis
> ./genxref --url=/var/www/localhost/lxr/source/geant
>
> and generate the appropriate indexes. However, when I try to access
>
What I really meant to say was:
./genxref --url=http://localhost/lxr/source/metis
./genxref --url=http://localhost/lxr/source/geant
However, that was probably obvious. Back to the issue at hand though...
Thinking the problem over further this morning though, I think I've
answered my own question about how to use a multiple configuration block
section in lxr.conf.
I'm guessing I should create the directory path
/var/www/localhost/htdocs/lxr
Then under this directory create something like a master directory
/var/www/localhost/htdocs/lxr/master
I should move lxr.conf, .htaccess, and all of the html template files to
this directory. Then, for every source tree I want to index, I just
create a different symbolic link to this master directory for the
webserver to access.
/var/www/localhost/htdocs/lxr/geant->/var/www/localhost/htdocs/lxr/master
/var/www/localhost/htdocs/lxr/metis->/var/www/localhost/htdocs/lxr/master
etc.
I'll be working with the same html template files, .htaccess file and
the lxr.conf file across all directories. However, when accessing the
directories through the webserver, I'll be coming in through different
URLs, and the different blocks in lxr.conf will be activated.
So I'd index this setup with:
./genxref --url=http://localhost/lxr/geant/source
./genxref --url=http://localhost/lxr/metis/source
... and access with:
http://localhost/lxr/geant/source
http://localhost/lxr/metis/source
Was this the intended setup for a multi-block lxr.conf setup? Or is
there a way that avoids all of the symlink directories and works
directly through the various source, diff, find, ident, etc. scripts.
Thanks,
--
Robert D. Penny <robert.d.penny@...>
|