Information, Technology & Consulting

Web Options for UNIX and AFS Users


The Web server running on cannot serve pages directly from AFS. Another system,, runs a Web server that can directly serve pages out of a user's account.

Below are two options for people who want to have web pages, but keep them in AFS and maintain them directly from their AFS account.

Option 1 (enabled on all new accounts)

Make a public_html directory in your AFS account and put your pages in that directory. The machine runs a Web server and sees all the AFS server files, so your URL would be

Users cannot log in to Caligari directly, but it sees all your files. All AFS accounts are automatically enabled on Caligari. Make sure your public_html directory is readable by the Web server. To make sure it is, run the command fs sa ~/public_html http_server rl


  • Files are easily edited directly from any AFS client computer.
  • Can use Web development tools on UNIX/Linux workstations to better advantage.


Option 2

Follow the instructions to serve pages off as in Option 1, then obtain a account. In your account, place a file named .htaccess (the leading "." is important) containing the lines:

RewriteEngine on
RewriteRule ^(.*)$$1
RewriteRule /home/people/u/username/(.*)$1

Replace username with your own username (and u by the initial letter). This causes the web server on www to call instead, for all requested pages.



  • Less efficient. Clients need to contact both servers.

Note: Both servers run PHP files. Neither server directly runs arbitrary user CGI scripts. If you want to dabble with CGI scripts, you should request a test/development account on Cobweb. Cobweb is an experimental server, with less restrictive policies and intended for learning and developing Web tools.

Research Computing
Research Computing Consulting
Last updated: 
Wednesday, January 3, 2018

If you have questions or need further information, contact your department's IT support office, or contact the IT Service Desk via email at [email protected], via phone at 603-646-2999 or walk in to see them in Baker/Berry 178J.

Information, Technology & Consulting