cd
chmod 711 .
public_html in your home directory.
This directory should also be world searchable (711).
mkdir public_html
chmod 711 public_html
.html.
They should be world readable (644). For example, if you have
a file called myfile.html in your public_html
directory, you can make it world readable by
chmod 644 ~/public_html/myfile.html
http://www.ews.uiuc.edu/~username/filename
For example, for login name x-abcde
http://www.ews.uiuc.edu/~x-abcde/myfile.html
will access ~x-abcde/public_html/myfile.html.
Note: do not include
So if you put your personal home page in
public_html in
the URL!. In a URL public_html" directory.
http://www.ews.uiuc.edu/~x-abcde/
(i.e. no filename) is the same as
http://www.ews.uiuc.edu/~x-abcde/index.html
~/public_html/index.html, people
can access it with the short URL. (Note: it's a good practice to use the
trailing slash on directories in URLs. Some servers can get confused
otherwise.) If there is no index.html, the short URL will
generate a menu of all files if public_html
is world readable (755) or an
error message if it is only world searchable (711).
~/public_html, except to
files or directories that you own, generate
an error message. Please let me know if you find a case otherwise.