Re: can apache do this?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Ryan <sunraise2005@xxxxxxxxx> :
> 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 <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux