Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > OSX Server, sym link to folder above site root

OSX Server, sym link to folder above site root
Thread Tools
Mac Elite
Join Date: Jun 2004
Location: College
Status: Offline
Reply With Quote
Sep 13, 2005, 08:08 PM
 
OK, I know I have done this before somehow, but I can't remember what I did.

What I am trying to do is create an alias (or symlink) to my photos. I am using OSX's built in server/web sharing.

My site root is at ~/Sites/ but I want to link to ~/Pictures/

I know I have done this before. It must be possible somehow. I tried creating a Symbolic Link (using Cocktail, because Im too lazy to look up the terminal command) to the Pictures folder, but that gave me a 403 forbidden.

So I tried setting permissions to 777 (on the Pictures folder and ALL of its contents) to allow everything, but it had no effect what so ever. I still got a 403 forbidden.

I know index listings (or whatever they are called) are turned on, because I have an index listing for ~/sites/

Do you have any suggestions?
     
Senior User
Join Date: Jul 2004
Status: Offline
Reply With Quote
Sep 13, 2005, 11:31 PM
 
try another sym link maker. i do this and i also do it to another hd and it works

use ftp program to ftp to your self rather than using local connecting (ie: turn ftp in sharing. then ip address for host and user login for user and pass) and set the permissions

i use one that adds the sym link maker to my right click menu (to tired to call it by its right name) but i am to lazy to give its name right now.

also make sure in your httpd.conf that you have follow sym links enabled. should be in there down were you set web root folder.
     
Dedicated MacNNer
Join Date: Nov 2004
Location: Stockholm, Sweden
Status: Offline
Reply With Quote
Sep 15, 2005, 01:22 AM
 
read man ln, unless you're too lazy to type it.
     
Grizzled Veteran
Join Date: Jun 2001
Location: Melbourne, Australia
Status: Offline
Reply With Quote
Sep 15, 2005, 06:31 AM
 
Edit /etc/httpd/users/(yourusername).conf

<Directory "/Users/(yourusername)/Sites/">
Alias / /Users/(yourusername)/Pictures/
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Computer thez nohhh...
     
Grizzled Veteran
Join Date: Jun 2001
Location: Melbourne, Australia
Status: Offline
Reply With Quote
Sep 15, 2005, 06:32 AM
 
Originally Posted by Phil Sherry
read man ln, unless you're too lazy to type it.
Cornflakes taste a bit salty today?
Computer thez nohhh...
     
Dedicated MacNNer
Join Date: Nov 2004
Location: Stockholm, Sweden
Status: Offline
Reply With Quote
Sep 16, 2005, 12:22 AM
 
Originally Posted by Simon Mundy
Cornflakes taste a bit salty today?
Feh!
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:36 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2