Apache Help

Discussion in 'OT Technology' started by o2, Jun 9, 2006.

  1. o2

    o2 Witty Title Here OT Supporter

    Joined:
    Oct 4, 2005
    Messages:
    16,099
    Likes Received:
    11
    Location:
    Toronto
    Okay, Im not sure if this is possible.... im a whm user... so I dont know jack about apache.

    Is it possible to create a "shadow directory" which would link to a folder in a folder 1 level above it? here is an example

    I have one site at /home/username/public_html/ and is has a directory which contains game file thumbnails, whcich is located at /home/username/public_html/games/

    I created another site, which will run off /home/username/public_html/arcade/ and will have its own domain (so you cant link to things in the public_html dir by simply doing "../".

    I want a create a shadow copy of /games folder in the /arcade folder so whatever I put into /home/username/public_html/games will look like its also put into /home/username/public_html/arcade/games (without actually having my script put copies of the file into each dir).

    Any ideas?
     
  2. P07r0457

    P07r0457 New Member

    Joined:
    Sep 20, 2004
    Messages:
    28,491
    Likes Received:
    0
    Location:
    Southern Oregon
    i assume you have ssh access to the box. If so, create a symlink:

    Code:
    ln -s /home/username/public_html/arcade /home/username/public_html/arcade/games
     
  3. Rob

    Rob OT Supporter

    Joined:
    Jul 6, 2002
    Messages:
    88,612
    Likes Received:
    36
    Location:
    Atlanta, GA
    Don't forget to enable the FollowSymLinks option for that directory.

    Keep in mind there are some security concerns associated with this.
     
  4. o2

    o2 Witty Title Here OT Supporter

    Joined:
    Oct 4, 2005
    Messages:
    16,099
    Likes Received:
    11
    Location:
    Toronto
    That didnt work. I got my apache guru to do it for me. :cool:

    I dunno what he did, but it works great.
     

Share This Page