can apache do this?

can apache do this?

am 14.03.2010 12:40:24 von Ryan

Hi, does anyone know whether apache can do this? I searched and tried
alias and virtual directory but no one can fit my need.

1. I have two disks in the server, say d:\ and e:\

2. now I want to present contents under d:\ and e:\ to ONE apache URL path, say
http://example.com/d_e_content/.

Does anyone know whether apache can do this?

(notes, present ALL contents just under ROOT URL is must, this is NOT
my need since it under two sub-directories of the ROOT URL:
http://example.com/d_e_content/d_disk/

http://domain.com/d_e_content/e_disk/


thank you very much and looking forward your reply!

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: can apache do this?

am 14.03.2010 15:05:14 von Eric Covener

On Sun, Mar 14, 2010 at 6:40 AM, Ryan wrote:
> Hi, does anyone know whether apache can do this? =A0I searched and tried
> alias and virtual directory but no one can fit my need.
>
> 1. I have two disks in the server, say d:\ and e:\
>
> 2. now I want to present contents under d:\ and e:\ to ONE apache URL pat=
h, say
> http://example.com/d_e_content/.
>
> Does anyone know whether apache can do this?

>
> (notes, present ALL contents just under ROOT URL is must, this is NOT
> my need since it under two sub-directories of the ROOT URL:
> http://example.com/d_e_content/d_disk/
>
> http://domain.com/d_e_content/e_disk/
>

Couldn't really parse your sentence, but if you want a directory
listing at /d_e_content/ that looks like the combined directory
listing of two directories, you'll have to do it yourself in
CGI/PHP/etc.

--=20
Eric Covener
covener@gmail.com

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: can apache do this?

am 14.03.2010 15:09:57 von Ryan

On Sun, Mar 14, 2010 at 10:05 PM, Eric Covener wrote:
> On Sun, Mar 14, 2010 at 6:40 AM, Ryan wrote:
>> Hi, does anyone know whether apache can do this? =A0I searched and tried
>> alias and virtual directory but no one can fit my need.
>>
>> 1. I have two disks in the server, say d:\ and e:\
>>
>> 2. now I want to present contents under d:\ and e:\ to ONE apache URL pa=
th, say
>> http://example.com/d_e_content/.
>>
>> Does anyone know whether apache can do this?
>
>>
>> (notes, present ALL contents just under ROOT URL is must, this is NOT
>> my need since it under two sub-directories of the ROOT URL:
>> http://example.com/d_e_content/d_disk/
>>
>> http://domain.com/d_e_content/e_disk/
>>
>
> Couldn't really parse your sentence, but if you want a directory
> listing at /d_e_content/ that looks like the combined directory
> listing of two directories, you'll have to do it yourself in
> CGI/PHP/etc.
>
> --


you are right of understanding my question. Does apache has
particular module or plugin can do this?

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: can apache do this?

am 14.03.2010 15:52:45 von Rakotomandimby Mihamina

> Ryan :
> Hi, does anyone know whether apache can do this?
> 1. I have two disks in the server, say d:\ and e:\
> 2. now I want to present contents under d:\ and e:\ to ONE apache URL
> path, say http://example.com/d_e_content/.

I would manage it with symlinks:
On a Unix machine:
- Create a Directory: /var/www/d_e/
- With a for loop (in a pseudo code):
for ITEM in "/d/*"
do
link $ITEM /var/www/d_e/$ITEM
done
for ITEM in "/e/*"
do
link $ITEM /var/www/d_e/$ITEM
done
- Setup Apache to serve/follow "SymLinks"
- Setup apache to serve "/var/www/d_e/"

Of course, I noticed you talked about D:\ and E:\ that would imply you
are on Windows, but there should be a way to make symlinks under that
decent OS. ;-)

--
Architecte Informatique chez Blueline/Gulfsat:
Administration Systeme, Recherche & Developpement
+261 34 29 155 34 / +261 33 11 207 36

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: can apache do this?

am 14.03.2010 16:05:02 von Ryan

thank for your solution, this is one choice which drawback is can not
dynamic show content's change in d:/ and e:/, eg, create or remove a
directory under d:/, we must create/remove a corresponding symlink.

thanks and wanting more solutions, thank you mihamina.

(I believe I posted to the right place that got some many suggestions quick=
ly!)



On Sun, Mar 14, 2010 at 10:52 PM, Mihamina Rakotomandimby
wrote:
>> Ryan :
>> Hi, does anyone know whether apache can do this?
>> 1. I have two disks in the server, say d:\ and e:\
>> 2. now I want to present contents under d:\ and e:\ to ONE apache URL
>> path, say http://example.com/d_e_content/.
>
> I would manage it with symlinks:
> On a Unix machine:
> - Create a Directory: /var/www/d_e/
> - With =A0a for loop (in a pseudo code):
> =A0 =A0for ITEM in "/d/*"
> =A0 =A0do
> =A0 =A0 =A0link $ITEM /var/www/d_e/$ITEM
> =A0 =A0done
> =A0 =A0for ITEM in "/e/*"
> =A0 =A0do
> =A0 =A0 =A0link $ITEM /var/www/d_e/$ITEM
> =A0 =A0done
> - Setup Apache to serve/follow "SymLinks"
> - Setup apache to serve "/var/www/d_e/"
>
> Of course, I noticed you talked about D:\ and E:\ that would imply you
> are on Windows, but there should be a way to make symlinks under that
> decent OS. ;-)
>
> --
> =A0 =A0 =A0 Architecte Informatique chez Blueline/Gulfsat:
> =A0 =A0Administration Systeme, Recherche & Developpement
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0+261 34 29 155 34 / +261 33 11 207 36
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project=
..
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> =A0 " =A0 from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org