• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Webpages for students

I believe the out of the box apache configuration is setup for user pages already. Read though your /usr/local/etc/apache/httpd.conf

# 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 public_html
</IfModule>

So you'll probably want to add that directive to the virtual config section in apache and have the students put their files in /home/student1/public_html/
 
tried it on a development box and it didnt work. No virtualhosting involved. The directive you showed me is already included in
my httpd.conf file. i created the public_html folder inside my home directory and created a test file. it didnt show up.
 
as far as your first question,

http://host.domain.tld/~username/

is "traditional". It comes from the fact that "~" is short hand for "users home directory" in most unix shells. For instance, "cd ~" will always bring you to your home directory.

Because of its unix heratige a lot of NT/IIS admin's won't bother to set things up to emulate it, they'll just make a directory (your second example).

[edit]note: in http://host.domain.tld/~username/ you should specify the ending "/" especially in links. This is because if you don't, the webserver looks in its filesystem, says "I can't find that filename, but there's a directory named that" and sends back a re-direct that includes the "/". So there's no reason to make the webserver/browser go through that extra set of connections, especially if its a link and you can just code it once. (when i'm typing them in by hand, i'm lazy and let the webserver redirect me) [/edit]

bart
 
Back
Top