Results 1 to 8 of 8

Thread: How to make virtual host/Alias in apache pointing to external hardrive?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Apr 2005
    Posts
    1,907

    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

  2. #2
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    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.
    My usual boring signature: Something

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Apr 2005
    Posts
    1,907

    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

  4. #4
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: How to make virtual host/Alias in apache pointing to external hardrive?

    My usual boring signature: Something

  5. #5
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    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>
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  6. #6

    Thread Starter
    Frenzied Member
    Join Date
    Apr 2005
    Posts
    1,907

    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 ?

  7. #7
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    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.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  8. #8

    Thread Starter
    Frenzied Member
    Join Date
    Apr 2005
    Posts
    1,907

    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 ?
    Last edited by tony007; Jun 7th, 2008 at 08:18 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width