Multiple Hard Drives

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Multiple Hard Drives

Postby edroberts46 » 26. August 2008 18:40

Can more than one drive be used to contain pages for a web site?
edroberts46
 
Posts: 2
Joined: 26. August 2008 18:27
Location: Mississippi, USA

Postby Wiedmann » 26. August 2008 18:44

Can more than one drive be used to contain pages for a web site?

That's possible:
Apache Directive "Alias" or a symlink.
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby glitzi85 » 26. August 2008 18:46

Wiedmann wrote:Apache Directive "Alias" or a symlink.

How do I make symlinks under Windows?

glitzi
User avatar
glitzi85
 
Posts: 1920
Joined: 05. March 2004 23:26
Location: Dahoim

Postby Wiedmann » 26. August 2008 19:33

How do I make symlinks under Windows?

For a complete partition/volume on a harddrive) you can use "mountvol.exe" or the "Windows Disk Management".

For a link to a (sub-) folder you can use e.g. "linkd.exe" or "junction.exe".
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby glitzi85 » 26. August 2008 19:39

Wiedmann wrote:For a complete partition/volume on a harddrive) you can use "mountvol.exe" or the "Windows Disk Management".

For a link to a (sub-) folder you can use e.g. "linkd.exe" or "junction.exe".

Cool, kannte ich gar nicht.

mfg glitzi
User avatar
glitzi85
 
Posts: 1920
Joined: 05. March 2004 23:26
Location: Dahoim

The use of directories outside the rootdirectory

Postby edroberts46 » 27. August 2008 15:04

add the following line to the <ifModule alias_module> located in httpd.conf file

alias /<directory name to be used by web site> drive:/full path name

alias /pictures d:/pictures

the above will allow anything located in the directory d:/pictures to be accessed by http://localhost/pictures/<file name>

You will also not to add a <directory> </directory>

<directory "d:/pictures">
Allowoveride None
Options None
Order allow, deny
</direcdtory>
edroberts46
 
Posts: 2
Joined: 26. August 2008 18:27
Location: Mississippi, USA


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 88 guests