everyone should get familiar with all the files in the
/private/etc
directory
specific to your problem
/private/etc/httpd/httpd.conf
controls the apache server.
make sure this line is in the file and not commented outwith a #
<b>
Include /private/etc/httpd/users
</b>
then that users/ directory should contain
user.conf
user1.conf
etc..................
the user names are your own user names
the contents of those files should be there by default, but if they are not...
at a minimum
<b>
<Directory "/Users/user/Sites/">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</b>
there are other examples in your httpd.conf
also make sure of these things:
<b>
#
# UserDir: The name of the directory which is appended onto a user's home
# directory if a ~user request is received.
#
<IfModule mod_userdir.c>
UserDir Sites
</IfModule>
</b>
this indicates several things....
the lines<b>
LoadModule userdir_module libexec/httpd/mod_userdir.so</b>
and <b>
AddModule mod_userdir.c
</b>
must be present and uncommented
and in this case the UserDir is set to <b>"Sites"</b>
so when you put in a request for
<b>
http://localhost/~user/</b>
you should see the contents of the index file in you Sites directory.
if you edit that file you will have to stop and restart web sharing.