apache localhost stuff question

Discussion in 'OT Technology' started by babygodzilla, Jan 16, 2005.

  1. babygodzilla

    babygodzilla I love rice

    Joined:
    Nov 5, 2001
    Messages:
    3,108
    Likes Received:
    0
    im running apache on C:. i have my music on E:

    is it possible to make a page, put it in htdocs in C: and have links to E: so i can have people download music thru http?
     
  2. OmniFire

    OmniFire *************************

    Joined:
    Oct 19, 2003
    Messages:
    3,778
    Likes Received:
    0
    Location:
    Austin
    I believe everything has to be in htdocs. I think you can setup your apache config to point your htdocs folder to another harddrive.
     
  3. CyberBullets

    CyberBullets I reach to the sky, and call out your name. If I c

    Joined:
    Nov 13, 2001
    Messages:
    11,865
    Likes Received:
    0
    Location:
    BC, Canada/Stockholm, Sweden
    you can set it so it reads on a different port.

    I have serveral test sites that i host, each one is on the same IP, different port.
     
  4. IAMwhitey

    IAMwhitey New Member

    Joined:
    Nov 8, 2001
    Messages:
    1,010
    Likes Received:
    0
    Location:
    Pittsburgh, PA
    why run apache on windows?
     
  5. mace

    mace i don't read

    Joined:
    Jun 6, 2004
    Messages:
    12,567
    Likes Received:
    0
    Location:
    Texas
    because he doesn't have another computer?
     
  6. CyberBullets

    CyberBullets I reach to the sky, and call out your name. If I c

    Joined:
    Nov 13, 2001
    Messages:
    11,865
    Likes Received:
    0
    Location:
    BC, Canada/Stockholm, Sweden
    why not run apache on windows?
     
  7. Juvenall

    Juvenall What Would Juvie Do?

    Joined:
    Dec 31, 2004
    Messages:
    2,221
    Likes Received:
    0
    Location:
    #!/usr/bin/Detroit
    You can use your config file to setup virtual hosts (see the bottom of the config for examples). Since virtual hosts can be set to use their own DocumentRoot, you can use this (for example) to direct/host multiple calls. If by chance you're only using this to share music, then simply point your DocumentRoot do your e: drive.

    ..and you can make the DocumentRoot point to any place on your system. For example, my windows web server points to c:/site/ and then my virtual hosts point to c:/site/<domain name> with one virtual host (set as a subdomain) points to x:/files/perldev/<filename>.zip.


    Because IIS is for wimps and nothing is better then Apache. In my case, I couldn't live without the joys of mod_rewrite (among the countless others).
     
  8. tsaxon13

    tsaxon13 That guy

    Joined:
    Jan 5, 2005
    Messages:
    51
    Likes Received:
    0
    Location:
    Philly
  9. Rob

    Rob OT Supporter

    Joined:
    Jul 6, 2002
    Messages:
    88,612
    Likes Received:
    36
    Location:
    Atlanta, GA
    I've never used Apache on windows but can't you create shortcut in the root of your htdocs called music and point it to your e drive. Then set the FollowSymLinks dirrective in apache?

    I used to do something just like that in apache under linux.
     
    Last edited: Jan 17, 2005
  10. IAMwhitey

    IAMwhitey New Member

    Joined:
    Nov 8, 2001
    Messages:
    1,010
    Likes Received:
    0
    Location:
    Pittsburgh, PA
    i dunno i would figure if he would use IIS since it came with it. and I have mod_rewrite on my box... :dunno:
     
  11. DatacomGuy

    DatacomGuy is moving to Canada

    Joined:
    Oct 14, 2002
    Messages:
    16,546
    Likes Received:
    0
    Location:
    Tampa, FL
    That's what I was thinking as well..
     
  12. Rob

    Rob OT Supporter

    Joined:
    Jul 6, 2002
    Messages:
    88,612
    Likes Received:
    36
    Location:
    Atlanta, GA
    I did some searching after I posed that and yes infact it will work.


    It woudl be a lot easier then virtual servers too....becuase to do that you would need to either set up some DNS or get multiple IPs.
     
  13. DatacomGuy

    DatacomGuy is moving to Canada

    Joined:
    Oct 14, 2002
    Messages:
    16,546
    Likes Received:
    0
    Location:
    Tampa, FL
    Agreed..
     
  14. babygodzilla

    babygodzilla I love rice

    Joined:
    Nov 5, 2001
    Messages:
    3,108
    Likes Received:
    0

    ill try that :bigthumb:
     
  15. Astro

    Astro Code Monkey

    Joined:
    Mar 18, 2000
    Messages:
    2,047
    Likes Received:
    0
    Location:
    Cleveland Ohio
    Dunno if you're handy with coding, but with a scripting (like PHP but you could use whatever), you could setup a script to index and fetch the files off of e:. The web user would have no clue you're doing this. If you're really smooth, you can pretty easily include some security with it - setting up so only users you specify could download.
     

Share This Page