Personal tools
  • Help

nitrc:Future User Guide - NITRC-Hosted Web Site

From NITRC Wiki

Jump to: navigation, search

On the NITRC server, every tool/resource has a home directory under /home/groups with the tool/resource "Unix name" (/home/groups/<tool/resource Unix name>). You can find the "Unix name" by going to the tool/resource Summary page and looking at the URL. The name that appears after "http://www.nitrc.org/projects/" is the "Unix name." The tool/resource's home directory has write permission by the primary administrator. This administrator can access the home directory over SFTP or use the rsync command-line utility over SSH to update the home directory.

Tool/Resource Web Page

In each home directory is an "htdocs" directory. The tool/resource administrator can create a Web page with this directory. When an index.html page is placed (by SFTP) in the /home/groups/<tool/resource Unix name>/htdocs directory, it is accessible at http://<tool/resource Unix Name>.projects.nitrc.org/. For example:

Unix name: example
Web page directory: /home/groups/example/htdocs
Web page: /home/groups/example/htdocs/index.html
Web page URL: http://example.projects.nitrc.org/

If a project exists but does not have an index.html page, http://<tool/resource Unix Name>.projects.nitrc.org/ gets redirected to the NITRC Home page. For security reasons, PHP and CGI scripting has been disabled on the NITRC-hosted Web pages.

If you create a NITRC-hosted Web page, you may want to point to this page through the "Tool/Resource Home Page" link on your Summary page. To change the home page link, click "Admin" in the tool/resource menu, and then click "Edit Public Info."

Tool/Resource Files

You may also upload large files to your "/home/groups/" directory, and direct users to this file through a corresponding FTP URL. Place your file (by SFTP) in the home/groups/<tool/resource Unix name> directory. For example:

Unix name: example
File: /home/groups/example/file.ext
File URL: ftp://www.nitrc.org/home/groups/example/file.ext

Uploading via SFTP

If you do not already have an SFTP client, we recommend the open-source project FileZilla client because it is easy to use and provides download restarts. Use your NITRC account and an SFTP client to connect to www.nitrc.org.
Host=www.nitrc.org
Username=<NITRC username>
Password=<NITRC password>
Port=22
On the remote server, go to /home/groups/<tool/resource Unix name>/htdocs. Upload your file from your local machine to the remote server.

Note: Only the primary administrator, the one who registered the tool/resource with NITRC, can transfer files.

Once your file has been uploaded, be sure to set the user and group permissions appropriately. For example, if you only want members of your tool/resource to access the file, then turn off global read access.

Powered by MediaWiki
  • This page was last modified 14:20, 23 August 2011.
  • This page has been accessed 1,213 times.
  •