#1
  1. Confused badger
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Mar 2009
    Location
    West Yorkshire
    Posts
    1,112
    Rep Power
    487

    Access a folder outside of WWW folders


    As title ...

    My webserver's root (http://www.example.com) is located in /var/www/html/mysite but I need to allow access to /home/myhome via a URL, something like http://www.example.com/myhome ... I don't know the terminology otherwise I'd have google'd it.

    Cheers!
    "For if leisure and security were enjoyed by all alike, the great mass of human beings who are normally stupefied by poverty would become literate and would learn to think for themselves; and when once they had done this, they would sooner or later realise that the privileged minority had no function and they would sweep it away"
    - George Orwell, 1984
  2. #2
  3. Transforming Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,120
    Rep Power
    9398
    You can symlink a folder and enable the FollowSymLinks option, or use an Alias to that directory.
  4. #3
  5. Confused badger
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Mar 2009
    Location
    West Yorkshire
    Posts
    1,112
    Rep Power
    487
    Hmm, I read (and think understood!) the Alias documentation Req has pointed to (thanks for that by the way) but when I add the following into my .conf ...

    Code:
    Alias /myhome /mnt/500_1/myhome
    <Directory /mnt/500_1/myhome>
    	Order allow,deny
    	Allow from all
    </Directory>
    I get a 403 Access Denied when trying to access it via web browser (yes, I have restarted httpd). I have checked the permissions on the file-system and it's RWXR-XR-X so World should be able to read the contents.

    Any suggestions anyone please?
    "For if leisure and security were enjoyed by all alike, the great mass of human beings who are normally stupefied by poverty would become literate and would learn to think for themselves; and when once they had done this, they would sooner or later realise that the privileged minority had no function and they would sweep it away"
    - George Orwell, 1984
  6. #4
  7. Confused badger
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Mar 2009
    Location
    West Yorkshire
    Posts
    1,112
    Rep Power
    487
    Solved!
    Added an Options line and now working!

    Options Indexes

    (I only want a directory listing seen in the browser)
    "For if leisure and security were enjoyed by all alike, the great mass of human beings who are normally stupefied by poverty would become literate and would learn to think for themselves; and when once they had done this, they would sooner or later realise that the privileged minority had no function and they would sweep it away"
    - George Orwell, 1984

IMN logo majestic logo threadwatch logo seochat tools logo