Department Logo Information Services and Technology

Link Webpages to a Project Directory

Some users may need more space for their public_html files than the space provdided in their login (home) directory. If these users have access to a project or course directory, the following steps will use that directory to store their public_html files, while retaining the URL http://web.njit.edu/~UCID.

The following information assumes that a symbolic link or pointer, exists from your project directory to your login directory. Tthis link will normally have the name "proj".

To see if you have such a link in your login directory, use the command:

ls -ld ~/proj

If the desired link does not exist, it must be made with the command:

ln -s <path.to.project.directory> ~/proj

If you have not been assigned a project directory, please visit http://web.njit.edu/all_topics/Policies/diskquota.html

In the example below, it is assumed that the symbolic link "proj", pointing to the user's project directory, exists in the user's login directory. Enter the following commands on a Unix or Linux machine (e.g., afs1.njit.edu - afs35.njit.edu) in the order shown:

mv ~/public_html ~/public_html.orig
mkdir ~/proj/public_html
fs sa ~/proj http l
ln -s ~/proj/public_html ~/public_html
/usr/afsws/bin/fs sa ~/public_html http rl
cd ~/public_html.orig
tar cf - . | (cd ~/proj/public_html; tar xpf -)
/bin/rm -rf ~/public_html.orig