MUltiple drives in apache config?

Alles, was den Apache betrifft, kann hier besprochen werden.

MUltiple drives in apache config?

Postby cool4cools » 23. April 2006 13:36

hi i have my website hosted on

c:\website

but because my hdd is full

i also wanne have

d:\website\data
e:\website\data

how do i configurate apache that d:\website\data is a part of http:\\localhost???
cool4cools
 
Posts: 2
Joined: 12. April 2006 08:05

Postby deepsurfer » 25. April 2006 16:01

do you use XAMPP or standalone installation of Apache ?

in both case you can use " ALIAS " for apache configs.

Code: Select all
    Alias /shortname1 "d:\website\data"
    <Directory "d:\website\data">
        AllowOverride AuthConfig
        Order allow,deny
        Allow from all
    </Directory>

    Alias /shortname2 "e:\website\data"
    <Directory "e:\website\data">
        AllowOverride AuthConfig
        Order allow,deny
        Allow from all
    </Directory>

by typing http://localhost/shortname1 all informationen comes from d:\website\data

by typing http://localhost/shortname2 all informationen comes from e:\website\data
chirio Deep
Wie sagte einst der MCP aus Tron auf dem Bildschirm zu schreiben Pflegte
" ... end of communication ... "
User avatar
deepsurfer
AF Moderator
 
Posts: 6440
Joined: 23. November 2004 10:44
Location: Cologne
Operating System: Win-XP / Win7 / Linux -Debian


Return to Apache

Who is online

Users browsing this forum: No registered users and 17 guests