Viewing local websites on my iOS device over Wi-fi
Posted
by
John
on Super User
See other posts from Super User
or by John
Published on 2011-10-15T18:48:53Z
Indexed on
2012/11/27
23:13 UTC
Read the original article
Hit count: 196
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 http://192.168.1.101/~user
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
</Directory>
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.
© Super User or respective owner