Page 1 of 1

Running server off multiple harddrives??

PostPosted: 13. June 2011 04:11
by mikealex2k12
How do I make xampp run off multiple file locations?

Re: Running server off multiple harddrives??

PostPosted: 13. June 2011 10:26
by Nobbie
Either using ALIAS Directive or VirtualHosts.

See Apache Documentation about Usage.

Re: Running server off multiple harddrives??

PostPosted: 14. June 2011 23:34
by mikealex2k12
I don't think its Virtual Hosts that I want, I want it so I can host files online from 2 different harddrives. Say one folder is c:/xampp/htdoc/ and another is d:/htdocs/ both serving on one IP. Please help.

Re: Running server off multiple harddrives??

PostPosted: 14. June 2011 23:40
by Altrea
Just ask yourself one question:
Why are some of your files saved in one directory and some in the other?

Alias is the way to use if the files in the different folders belong together (are part of the same site / service / project).
If they are different, then VHosts is maybe a cleaner and better way (you can define own DocumentRoots, Logfiles, and so on).

Re: Running server off multiple harddrives??

PostPosted: 14. June 2011 23:42
by Nobbie
mikealex2k12 wrote:I don't think its Virtual Hosts that I want, I want it so I can host files online from 2 different harddrives.


And I dont think that you have any clue what a VirtualHost is, neither what ALIAS means, and I also dont think that you ever have looked into any documentation. I cant help you reading documentation - you have to read it on your own. I gave you proper hints, its on you to work them out.

Re: Running server off multiple harddrives??

PostPosted: 14. June 2011 23:44
by mikealex2k12
And I dont think that you have any clue what a VirtualHost is, neither what ALIAS means, and I also dont think that you ever have looked into any documentation. I cant help you reading documentation - you have to read it on your own. I gave you proper hints, its on you to work them out.[/quote]

Alias /d/ "D:/web/"
<Directory "D:/web/">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>

that's what I needed, thanks for your help anyways...