hello all
i have tried to make the public html on the apache but i failed
first i have configured apache httpd.conf file to enable the UserDir directive as follows
[HTML]<IfModule mod_userdir.c>
#
# UserDir is disabled by default since it can confirm the presence
# of a username on the system (depending on home directory
# permissions).
#
# UserDir disable
#
# To enable requests to /~user/ to serve the user's public_html
# directory, remove the "UserDir disable" line above, and uncomment
# the following line instead:
#
UserDir public_html
</IfModule>
#
# Control access to UserDir directories. The following is an example
# for a site where these directories are restricted to read-only.
#
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
# <LimitExcept GET POST OPTIONS>
# Order deny,allow
# Deny from all
# </LimitExcept>
</Directory>[/HTML]
second i create a new dir in my home dir (blackice) named with public_html and i create an index.html page for testing ... and i change all permission of the public_html dir and the file also
then i restarted apache ....
but if i tried to access it throw
http://localhost/~blackice/ i got the following error ....
[HTML] Not Found
The requested URL /~blackice/ was not found on this server.
Apache/2.2.4 (Fedora) Server at localhost Port 80[/HTML]