How to make virtual host/Alias in apache pointing to external hardrive?
How to make alias point to external hardrive folder
How to make virtual host/Alias in apache pointing to external hardrive(Keepting root directory working)?
Hi all could any one tell me how to make Virtual Host/Alias pointing to external hardrive
in my Apache/1.3.33 (Win32) server. ( I don't want to put all the content into default root directory).
This is exactly what i want .Suppose my default root directory is "C:\MyServer\htdocs", and the new root is "E:\music".
Basically i want only the urls that link to the virtual host will use the "E:\music" root directory, and all the others (on port 80) will still link to the default root directory.
Hope you guys help me achive this task.Thanks
Re: How to make virtual host/Alias in apache pointing to external hardrive?
if i am correct, your using wamp server? If so, start the wamp server, click the system tray icon, go to Apache -> Alias Directories -> Add Alias.
Re: How to make virtual host/Alias in apache pointing to external hardrive?
Quote:
Originally Posted by dclamp
if i am correct, your using wamp server? If so, start the wamp server, click the system tray icon, go to Apache -> Alias Directories -> Add Alias.
dclamp i am using wamp but older version (1.4.4) with Apache/1.3.33 (Win32) which doesn't have any alias dicrectories in the system tray icon. i don't want to upgrade since as some of them might stop working!
I hope you help me fix it with same old version of wamp.Thanks
Re: How to make virtual host/Alias in apache pointing to external hardrive?
Re: How to make virtual host/Alias in apache pointing to external hardrive?
Its as easy as editing the httpd.conf file:
Code:
Alias /external/ e:/
<Directory e:/>
Options -Indexes
</Directory>
Re: How to make virtual host/Alias in apache pointing to external hardrive?
Thanks vistualAd .so in order to access content of e: drive i should use http://localhost/external ?
Re: How to make virtual host/Alias in apache pointing to external hardrive?
Yes, make sure you include a solidus at the end of the address to signify that it is a directory and not a resource.
Re: How to make virtual host/Alias in apache pointing to external hardrive?
Visual add i tried it but i keep getting Forbidden error when trying to load
http://localhost/external/. Could you help me fix that ?My media player applet can't play it either!! Furthermore, is there away to limit external hardrive access to a perticuler folder not the whole drive ?