Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Trying to view some local html/css/js files in a mobile browser on my iOS device. Thought maybe file-sharing would be an option, and is, but I'm not completely satisfied with it. Any time I try to do the following an error occurs. Web sharing is on and available at but I have to manually copy the files in.

If I try to symlink a folder in so that the address could be viewed at ''~user/some_dir by issuing

$ ln -s /Users/user/dev/some_dir ~/Sites/

then I get a 403 forbidden error. I've tried to remedy this by modifying a user.conf file in /private/etc/apache2/ and using the following syntax:

    <Directory "/Users/user/Sites/">
        Options Indexes MultiViews SymLinks
        AllowOverride None
        Order allow,deny
        Allow from all

but nope, still doesn't work. I get a 403 error. If I try to symlink each individual file in instead of using a directory as a sub-directory, same error.

Any help would be greatly appreciated! I'd just like to symlink directories into the ~/Sites one and browse them on my iOS device over wifi. I'm on OS X 10.7 Lion trying to connect with iOS 5.

share|improve this question

migrated from Oct 17 '11 at 6:08

This question came from our site for professional and enthusiast programmers.

answer for Snow Leopard, 10.6.8:

the default user config found in /private/etc/apache2/users/<username>.conf is

<Directory "/Users/<username>/Sites/">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all

add FollowSymLinks to the Options, restart apache and you should be fine.

share|improve this answer

You must log in to answer this question.