How do I publish files on the web?

The EML enables users to publish documents and data on the web. Users may place files in a directory so that outside users can view them with a web browser.

Guidelines

Only individuals who are associated with the Economics Department are eligible to use this resource to distribute information. Participants must observe all departmental and UC campus rules and regulations, and all copyright laws. The EML reserves the right not to post submitted material.

Graduate students may maintain their own homepage using the following guidelines:

  • Posted material at the top level home page is limited to information related to the individual's academic interests. Listed below are examples of the type of information that is appropriate for the top level homepage:
    1. Biographical information (including the student's photograph).
    2. Dissertation abstract.
    3. Data sets (with the signed approval of faculty advisor).
    4. Links to other professionally relevant sites.
  • Personal information can be included in a sub-level home page that is clearly identified as containing personal information. This area can include links to sites that are not related to to the individual's academic work.
  • The posting or advertising of personal items for sale and the posting of any published material (including articles authored by the student) is forbidden.

Setting up the web area

In order to publish material on the web, you will create or deposit your files into a user-specific directory, /accounts/web/public/{username}/.

Follow the instructions below to create your web area:

  1. Send mail to rowilma@econ requesting the creation of an area in /accounts/web/public/.
  2. Manager will reply with the name of your directory. (usually /accounts/web/public/{username})
  3. Visit Rowilma in 643 Evans to sign a copyright form.
  4. Create your homepage, for example "index.html" in your web directory.
  5. View your site at https://eml.berkeley.edu/~{username}.

Password protected web areas

  1. Send mail to rowilma@econ requesting the creation of an area in /accounts/web/private/{username}/.
  2. If you plan on authenticating groups of usernames rather than just a single username, in /accounts/web/private/{username}/.pw/, create the file "authgroup" so that it looks like this:

    group1: user1 user2 user3 group2: anotheruser1 anotheruser2 user1
  3. Run `web-password user1` to add user1 to your user password database file, '/accounts/web/private/{username}/.pw/authuser'. Repeat this command for any additional users. To delete all of your web passwords, remove this file.
  4. In /accounts/web/private/{username}/directory1/, create the file .htaccess:
    AuthUserFile /private/{username}/.pw/authuser AuthGroupFile /private/{username}/.pw/authgroup AuthName "Private Access" AuthType Basic  require group group1 
    If you do not plan on authenticating groups of usernames, you can write:
    require valid-user
    or
    require user username
    in place of the 'require group' line. This authenticates any user in the htpasswd file. You may also combine several 'require group' and 'require user' lines.
  5. Repeat the previous step for any additional subdirectories.
  6. Test by visiting http://emlab.berkeley.edu/private/{username}/directory1/.

Creating HyperText Documents

Home pages are text files written in HTML (HyperText Markup Language). An HTML primer can be found at the address:

http://www.ncsa.uiuc.edu/General/Internet/WWW/HTMLPrimer.html