Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

Use of assignment to $[ is deprecated at /usr/local/sbin/apxs line 86. , wwwxxx vim, mysql closing table and opening table, 800c5000, setgid operation not permitted, pciehp: acpi_pciehprm on IBM, WWWXXX.DBF, 078274121, info0a ip, should prodicers of software_based services be held liable or not liable for economic injuries

Links

XODOX
Impressum

#1: Combined directory listing in Apache

Posted on 2008-04-07 08:41:11 by 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

Report this message

#2: Re: Combined directory listing in Apache

Posted on 2008-04-07 08:51:42 by 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

Report this message

#3: Re: Combined directory listing in Apache

Posted on 2008-04-07 11:29:03 by 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?

Report this message

#4: Re: Combined directory listing in Apache

Posted on 2008-04-07 11:58:03 by 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 <http://groups.google.com/advanced_search?q=&>, and
pasting the message ID into the field "Message ID"


patpro

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

Report this message

#5: Re: Combined directory listing in Apache

Posted on 2008-04-07 14:06:02 by bhovhannes

Ha, ha, ha :)

Sorry for taking Your time with such stupid question.

Thanks again for precise and valuable answers.

Report this message