apache question

Discussion in 'OT Technology' started by Insane2986, Jan 2, 2003.

  1. Insane2986

    Insane2986 Guest

    how do I create an alias to a network drive :confused:

    ex:
    Code:
    Alias /icons "C:/Program Files/Apache2/icons/"
    
    <Directory "C:/Program Files/Apache2/icons">
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
    would point http://127.0.0.1/icons to C:/Program Files/Apache2/icons


    but how would I do this with a network drive? :confused:

    ex:
    Code:
    Alias /icons "//networkPC/C/Program Files/Apache2/icons/">
    
    <Directory "//networkPC/C/Program Files/Apache2/icons">
        Options Indexes MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
     
  2. Kabuko

    Kabuko Guest

    I don't know a ton about Apache, there might be a native way to do it, but you could always map the network drive first...
     
  3. Insane2986

    Insane2986 Guest

    already tried it :sad2:

    for some reason, apache just doesn't want to work across the network (probably for security reasons...)
     
  4. DigiCrime

    DigiCrime If Only!

    Joined:
    Oct 25, 2001
    Messages:
    32,996
    Likes Received:
    98
    Location:
    St. Louis
  5. DigiCrime

    DigiCrime If Only!

    Joined:
    Oct 25, 2001
    Messages:
    32,996
    Likes Received:
    98
    Location:
    St. Louis
  6. Rob

    Rob OT Supporter

    Joined:
    Jul 6, 2002
    Messages:
    88,612
    Likes Received:
    36
    Location:
    Atlanta, GA
    If you have the network drive maped and succesfuly working then I don't see why something like this wouldn't work.


    Say for example you had the remote machine maped to the m: drive:
    Alias /icons "//networkPC/C/Program Files/Apache2/icons/">

    <Directory "m:/Program Files/Apache2/icons">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>


    Try posting the error messages that you get. A) the one from the broswer when you try to access something from the maped drive, B) the contents of error.log from apache or C) the error returned if apace refuses to start with an alias to a mapped drive.
     
  7. Dommi

    Dommi Guest

    what are the permissions in your acl for the network drive?

    do you have a special group created for the network drive that gives apache full rights?
     
  8. Insane2986

    Insane2986 Guest

    I'm still getting:

    but anyways, it's probably just my PC. I went out and bought a controller card so I could finally fit the drive in my own computer (along with room for 3 more)

    Thanks for the help :)
     

Share This Page