Making a File Visible on the Web
Any files that you want visible publicly can be placed on unix under ~/public_html (create the directory if it doesn't exist). This will be visible as a URL like http://www.slac.stanford.edu/~yourusername.
Personal Home Pages
There is a template available for more official personal web pages (created by Chip Dalby) that you can get by copying the files in /afs/slac/g/suncat/suncat_public_html (including the "images" subdirectory) to a convenient place in your public_html directory (described above). If you put the files directly in your public_html, the page will be visible as something like http://www.slac.stanford.edu/~yourusername/profile.shtml
If you email cpo, I can add a link to your personal page from the SUNCAT website.
The SUNCAT policy is that each individual who wants one will maintain their own personal page using the style above.
Lars offers the following information, gained when he used the above to create his own web page:
The only problem I had was including the navigation and contact information from a common place. This can be easily achieved by adding that information to the files leftnav.inc and contact.inc. Those files can then be included in each page using
<!--#include virtual="leftnav.inc" ?>
<!--#include virtual="contact.inc" -->The only other thing I recommend doing is to create a symbolic link from index.shtml to profile.shtml so that the url doesn't need to include profile.shtml.
Otherwise I only modified the information from the template in plain html.
Password Protected Pages
On one of the SLAC unix machines, create a .htpasswd file that will contain your login names and passwords.
cpo@suncatls1 $ cd cpo@suncatls1 $ htpasswd -c .htpasswd webtest
(use "-c" only for creating your first password)
htpasswd will prompt you (twice) to input the password for the login name "webtest".
Create a subdirectory that you want to protect under ~/public_html. Put two files there:
The .shtaccess should contain:
AuthUserFile /afs/slac/u/if/cpo/.htpasswd AuthName "Enter userid and password" AuthType Basic <LIMIT GET> require user webtest </LIMIT>
NOTE: Edit two lines in .shtaccess: pathname of .htpasswd and the "require user" line with the appropriate username
The .htaccess file should contain (this does not have to be editted):
RewriteEngine On RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]