Combined directory listing in Apache

Combined directory listing in Apache

am 07.04.2008 08:41:11 von bhovhannes

Hello all!

I have two directories:
C:\htdocs
with subfolders C:\htdocs\TestA and C:\htdocs\TestB
and D:\htdocs2
with subfolders D:\htdocs2\TestC and D:\htdocs2\TestD

When I set DocumentRoot to C:\htdocs and navigate using browser to
http://localhost/, I see in directory listing
TestA
TestB

When I set DocumentRoot to D:\htdocs2 and navigate using browser to
http://localhost/, I see in directory listing
TestC
TestD

My question is: how should I setup my apache configuration to see
TestA
TestB
TestC
TestD
when I navigate to http://localhost/ using my browser.

Thanks forehand for any suggestions/ideas,
Hovhannes

Re: Combined directory listing in Apache

am 07.04.2008 08:51:42 von patpro

In article
<19eea731-b118-421a-a0d0-69e05063da29@k13g2000hse.googlegroups.com>,
bhovhannes@gmail.com wrote:

> Hello all!
>
> I have two directories:
> C:\htdocs
> with subfolders C:\htdocs\TestA and C:\htdocs\TestB
> and D:\htdocs2
> with subfolders D:\htdocs2\TestC and D:\htdocs2\TestD
>
> When I set DocumentRoot to C:\htdocs and navigate using browser to
> http://localhost/, I see in directory listing
> TestA
> TestB
>
> When I set DocumentRoot to D:\htdocs2 and navigate using browser to
> http://localhost/, I see in directory listing
> TestC
> TestD
>
> My question is: how should I setup my apache configuration to see
> TestA
> TestB
> TestC
> TestD
> when I navigate to http://localhost/ using my browser.
>
> Thanks forehand for any suggestions/ideas,
> Hovhannes


you just can't.
Apache is not able to create a "union" view of 2 directories. You'll
have to create this view yourself.
You might want to design a CGI or php/whatever index page that will list
both htdocs and htdocs2.

patpro

--
A vendre ! http://www.patpro.net/blog/index.php/2008/01/12/133

Re: Combined directory listing in Apache

am 07.04.2008 11:29:03 von bhovhannes

Thanks,

I'll try to write a php script.

But what did You mean writing
> In article
> 19eea731-b118-421a-a0d0-69e05063da29@k13g2000hse.googlegroup s.com

How can I read this article?

Re: Combined directory listing in Apache

am 07.04.2008 11:58:03 von patpro

In article
<25d3aa0c-f6cd-4b49-abd1-3a799640c019@l42g2000hsc.googlegroups.com>,
bhovhannes@gmail.com wrote:

> But what did You mean writing
> > In article
> > 19eea731-b118-421a-a0d0-69e05063da29@k13g2000hse.googlegroup s.com
>
> How can I read this article?

This is the message ID of your very own message ;)
You can find a message from its message ID by using "advanced search" in
google groups , and
pasting the message ID into the field "Message ID"


patpro

--
A vendre ! http://www.patpro.net/blog/index.php/2008/01/12/133

Re: Combined directory listing in Apache

am 07.04.2008 14:06:02 von bhovhannes

Ha, ha, ha :)

Sorry for taking Your time with such stupid question.

Thanks again for precise and valuable answers.