Portal   Forum   Members   Market   Gallery   Events

linking to external hard drive within web sharing

Discussion in 'Help Forum' started by hootowl, Jun 6, 2002.

  1. hootowl

    hootowl Peasant

    Joined:
    Apr 21, 2002
    Messages:
    16
    Likes Received:
    0
    Market Rating:
    0
    u guys helped me out pretty good getting my server up, now i need more help.lol. i'm trying to link to pages on an external hard drive. i gave permissions to the hard drive via the desktop icon. don't work. dragged an alias of same to the documents folder within webserver folder and gave that permission. don't work. is it even possible to link to an external hard drive?
     
  2. Haite

    Haite Forum Moderator

    Joined:
    Jan 29, 2001
    Messages:
    9,325
    Likes Received:
    34
    Market Rating:
    0
    The documents have to be in the web server folder. The reason the alias doesn't work is because when you pull up a page in your browser, the web server is sending the alias file itself to the client.

    --Haite
     
  3. hootowl

    hootowl Peasant

    Joined:
    Apr 21, 2002
    Messages:
    16
    Likes Received:
    0
    Market Rating:
    0
    my internal drive is about full, so transfering files to there is out.
     
  4. Haite

    Haite Forum Moderator

    Joined:
    Jan 29, 2001
    Messages:
    9,325
    Likes Received:
    34
    Market Rating:
    0
    The drive doesn't necessarily matter, it's whatever folder your web hosting is using.

    --Haite
     
  5. cowofwar

    cowofwar Peasant

    Joined:
    Jun 14, 2000
    Messages:
    13,721
    Likes Received:
    18
    Market Rating:
    0
    Then set up your web root in the httpd.conf to your external drive.

    The path would be /volumes/drivename/path/to/folder/
     
  6. hootowl

    hootowl Peasant

    Joined:
    Apr 21, 2002
    Messages:
    16
    Likes Received:
    0
    Market Rating:
    0
    i'm not sure i follow u haite,if i transfer my files from external drive to web server folder which is on internal drive, would that not also take up room on internal drive?
     
  7. hootowl

    hootowl Peasant

    Joined:
    Apr 21, 2002
    Messages:
    16
    Likes Received:
    0
    Market Rating:
    0
    cowofwar...if i do as u say, would i have to transfer my site to external drive too?i have my whole internal hard drive share in privileges. so wouldn't this also include my desktop which includes my shared external drive? i don't think i follow..lol
     
  8. cowofwar

    cowofwar Peasant

    Joined:
    Jun 14, 2000
    Messages:
    13,721
    Likes Received:
    18
    Market Rating:
    0
    Oh, i see what you want to do. Basically you need to set up an alias in the httpd.conf.

    I have http://www.cowofwar.com/fileserver/ set up. But the files in fileserver are actually not under the root folder of my web site. They're all on a different drive.

    Here's the code from my httpd.conf

    Code:
        Alias /fileserver/ "/volumes/ix/File Server/"
    
        <Directory "/File Server">
            Options Indexes MultiViews
            AllowOverride All
            Order allow,deny
            Allow from all
        </Directory>
    So basically if i wanted a file called xxx.jpg from the folder file server on my drive ix I can just link to it from http://www.cowofwar.com/fileserver/xxx.jpg
     
  9. Haite

    Haite Forum Moderator

    Joined:
    Jan 29, 2001
    Messages:
    9,325
    Likes Received:
    34
    Market Rating:
    0
    I was saying the exact same thing as cow, he just bothered to explain it ;).

    --Haite
     
  10. hootowl

    hootowl Peasant

    Joined:
    Apr 21, 2002
    Messages:
    16
    Likes Received:
    0
    Market Rating:
    0
    i don't think that is what i want to do cow. basically what i want to do is store html pages and other files (jpgs,mpgs,mp3s,etc...) to be linked together as pages with my web site. i really don't plan on using as a fileserver, although u do like the password feature. how do i get to httpd.conf? most of this stuff is still greek to me as i am still trying to learn it all, so please be gentle..also, would it just be easier to load OSX on external drive and start up from that drive then use web sharing from that?
     
  11. cowofwar

    cowofwar Peasant

    Joined:
    Jun 14, 2000
    Messages:
    13,721
    Likes Received:
    18
    Market Rating:
    0
    Hmmm...Try to outline what you're trying to do. It'd be easier for me to understand.

    Like you want to link webpages to files found on an external drive?
     
  12. Haite

    Haite Forum Moderator

    Joined:
    Jan 29, 2001
    Messages:
    9,325
    Likes Received:
    34
    Market Rating:
    0
    He wants to store the HTML and images and everything for his site on a different drive, but he can't simply change the folder his web server uses because he already has a bunch of stuff that he doesn't want to move.

    --Haite
     
  13. cowofwar

    cowofwar Peasant

    Joined:
    Jun 14, 2000
    Messages:
    13,721
    Likes Received:
    18
    Market Rating:
    0
    Ah. Do you have a domain linked to your IP? If so you could set up the folder containing the files to be a subdomain while your main folder stays the same. So if you wanted an image out of the other drive you could have http://images.yourdomain.com

    Then just call on the images with that.
     
  14. hootowl

    hootowl Peasant

    Joined:
    Apr 21, 2002
    Messages:
    16
    Likes Received:
    0
    Market Rating:
    0
    well, i don't want to store my whole site there, i already have 1/2 of it on internal drive. yes , i do have a domain linked to my IP. what i want to do is have a page on my site that lists my mp3's. visitors can click on a song title on that page to download said mp3. i have no problem doing it when the mp3's are on internal drive. i think i may go the fileserver route that you suggested to password protect that area. how would i do this. remember......it's all greek, lol
     

Hitometer: 53,936,184 since 1995