Women in Technology

Hear us Roar



Article:
  Apache Web-Serving with Mac OS X, Part 4
Subject:   Alias' Don't work
Date:   2002-03-04 16:59:46
From:   bligh68
In Mac OS 9 I used alias' to store 2500 pictures on a CD Then used the alias' in my webpage folder to accesses those pictures on the CD.


Now that I'm running Apache those alias' don't seem to work. I don't get an error message, I only get a line of text with the pictures URL.


If I replace the alias with the real picture things work fine. But I really don't won't to do that. I would rather stick with the alias'


cheers

Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Morbus Iff photo Alias' Don't work
    2002-03-11 09:02:27  Morbus Iff | O'Reilly Author [View]

    In OS X, an "alias" in the Finder is the same as an "alias" under OS 9. However, Apache lives under the BSD layer of OS X, so "alias"es don't work the same. What you're looking for are "symlinks".

    If you're picture directory is called (for example), "My Real Pictures", and it lives in your Mac HD, and you want a "pictures" directory under your personal website, run these commands in the Terminal:

    ln -s "/My Real PIctures" "/Users/username/Sites/pictures/"
    chown 755 "/My Real Pictures"

    You'll also have to tell Apache to follow symlinks when it's serving various webpages. To do so, edit your /etc/httpd/users/username.conf file, and add "FollowSymLinks" to the "Options" line. Finally, restart Apache, and things should be working for ya.