Webpage Instructions
From rpgroup UNIX computers
- The group webpage directory is
/network/web, a directory which is accesible from any of the group linux computers. - To make a homepage, take the following steps:
- Make a directory
public_htmlin your home directory. chmod a+rx ~/public_htmlto make it world-readable.- Save the template in this
directory as
index.html. chmod a+r ~/public_html/index.htmlto make it world-readable.- Check
http://www.rpgroup.caltech.edu/~login/to see your new homepage. - Personalize the template
- Make a directory
From windows computers
- Accessing your rpgroup directory and making a home page:
- Get an rpgroup account and password from Chad.
- Right-click on My Computer, select Map Network Drive...
- ???
- Add a folder named
public_htmlto your home directory. This is where all of your web files go. - Download the template
and save it as
index.htmlin yourpublic_htmldirectory. - Test that it worked by loading your homepage
http://www.rpgroup.caltech.edu/~login/ - Now edit
index.htmlwith any text editor to have your own personal information!
Password-protecting a directory
- Log in to mh1-rpgroup with ssh.
cdto the directory you want to protect - Type
pwdto get the full path to the directory - Create a file called
htaccess.txtin that directory (pico htaccess.txtor use your favorite editor), containing the following (replace the stars with the full path frompwd):AuthUserFile /***/htpasswd.txt AuthGroupFile /dev/null AuthName loginname AuthType Basic require valid-user
You can use whatever you want instead ofloginname. - Now run
htpasswd -c htpasswd.txt loginname
and enter your desired password.
Home