Medex How to Make a Website Page
MEDEX Objectives Home: http://faculty.washington.edu/alexbert/MEDEX/
WE’RE ALL IN THIS TOGETHER
Shortcuts:
SETTING UP AN ACCOUNT (Top of Page)
Go to Manage Your UW NetID Resources and do the following:
Activating Web publishing creates your Web directory. This is where you will store your Web pages. A shortcut called public_html is created in your Dante account to make it easier to put files in your Web directory. When you put a file into your Web directory (aka public_html) it is immediately accessible on the Web to others.
POSTING STUFF ON THE WEB (Top of Page)
First download and install the UW Internet Connectivity Kit (UWICK)
You should now have the following icon on your desktop:
This icon is also found on the computers in the Library Computer Lab.
Double click this icon.
The following window should open:
Click on the Quick Connect icon.
A new Window should open up:
Enter dante.u.washington.edu in the "Host Name:" block and your UW user ID in the "User Name:" block.
Left click the Connect button.
A new Window should open up:
Enter your UW password and left click the OK button.
You should now be logged on.
Double click the public_html folder and replace or delete the index.html file (right click and select Delete).
To add files to your website, simply drag them to the public_html screen.
That's it.
MAKING A WEB PAGE (Top of Page)
There are many ways to make a web page.
You have three options for composing a home page:
Note: if you compose your home page by hand or with an HTML authoring tool, save the file as index.html (or index.htm). This is the filename associated with your home page.
A simple way is to use Microsoft Word to make a document and save it as a Webpage.
When you want to edit your file(s), just open it with Word, Front Page, or by selecting edit after right clicking it (Windows 2000 or XP only).
THE FOLLOWING 3 SECTIONS PERTAIN TO LIMITING ACCESS TO YOUR SITE (Top of Page)
Authorizing UW NetIDs by Groups
This article provides instructions for password protecting a site using a group of UW NetIDs maintained in a separate group file. This technique facilitates the day-to-day upkeep when you're working with dozens of UW NetIDs. The instructions illustrate a simple example, but more advanced methods are described at the end of the article.
1. Log in to your Homer or Dante account.
2. Press the O key for Other.
3. Press the W key to drop into the Web development environment.
4. At the prompt, enter the following command to change directories to your Web directory:
cd public_html
If you want to password protect a subdirectory rather than your whole Web site, change directories to the subdirectory you want to protect. For example:
cd public_html/directory
5. At the prompt, enter the following command to create a .htgroup file in the current working directory:
pico .htgroup (Important Note: if you have longs lists to add, you should instead type pico -w .htgroup to turn off word wrap)
Note: You can create the .htgroup file in your Web directory, one of its subdirectories, or, if you want to get fancy, in the Web directory of another account. For simplicity, this example uses a .htgroup in the same directory as the .htaccess file.
6. Define groups of UW NetIDs in the .htgroup file, one group per line, like so (you can copy your list and press the right mouse button over the field you wish to paste on):
|
MEDEX36: meganb tatyanah vb33 pjb3 fassilb alexbert bibbyd twb3
kboutain jennyb3 suzcarls sg lmh8 colleen2 kynan dustyh aisidro kkeating
skim622 brentk soteki2 samlips etak mjm8 janelisa radebach brandea ericp2
radaik gremien brusers msr3 pdt2 aprilt akjenn sarrav echingv weberl welcht
mariad2 alf2 freemb henned cmjm ril kennel jlm6 devildoc spragr jstrine gtl6
twt2 ltrip brtritt whited ky4 dawne fieldst frencw hamiltbg haukn linarb
boonedog deepipal salinar spitler rexs tvick alweiss lottr |
7. Be sure to enter the name of each group, followed by a colon, and then list the UW NetIDs that make up the group, separating the names with spaces.
8. Save the .htgroup file (in Pico use ^X).
9. At the prompt, enter the following command to create a .htaccess file in the current working directory:
pico .htaccess
10. Add the following text to this file (in this example - only the groups MEDEX36, MEDEX37 and Guest are allowed access):
|
AuthType UWNetID |
11. Save the .htaccess file (in Pico use ^X).
12. You're done! Confirm that password protection is working by opening your Web site with a Web browser.
Notice who's given access in this example. The .htaccess file requires members of the MEDEX36 MEDEX37 and Guest groups, as defined in the .htgroup file.
The AuthGroupFile directive specifies the location of the .htgroup file. Here it is the same directory as the .htaccess file. (Hint: if your .htgroup file is in some other directory, use AuthGroupFile ~someid/path/.htgroup where "someid" is the account holding the .htgroup file and "path" is the relative path, as you would see in a URL, to the directory containing the .htgroup file AuthGroupFile ../.htgroup or AuthGroupFile AccessList/.htgroup for example)
Authorizing Any Valid UW NetID
Follow these step-by-step instructions to password protect your Web site such that only people with a UW NetID can get in.
1. Log in to your Homer or Dante account.
2. Press the O key for Other.
3. Press the W key to drop into the Web development environment.
4. At the prompt, enter the following command to change directories to your Web directory:
cd public_html
If you want to protect a subdirectory rather than your whole Web site, change directories to the subdirectory you want to protect. For example:
cd public_html/directory
5. At the prompt, enter the following command to create a .htaccess file in the current working directory:
pico .htaccess
6. Add the following text to this file:
|
AuthType UWNetID |
7. To the Web server, valid-user has special meaning. In this context, it refers to anyone who can enter a valid UW NetID and password.
8. Save the .htaccess file (in Pico use ^X).
9. You're done! Confirm that password protection is working by opening your Web site with a Web browser.
Authorizing a Short List of UW NetIDs
Follow these step-by-step instructions if you want to password protect your Web site using a short list of UW NetIDs.
1. Log in to your Homer or Dante account.
2. Press the O key for Other.
3. Press the W key to drop into the Web development environment.
4. At the prompt, enter the following command to change directories to your Web directory:
cd public_html
If you want to protect a subdirectory rather than your whole Web site, change directories to the subdirectory you want to protect. For example:
cd public_html/directory
5. At the prompt, enter the following command to create a .htaccess file in the current working directory:
pico -w .htaccess
The -w option turns off word wrap, which helps if you have a long list of UW NetIDs you want to authorize.
6. Add the following text to this file:
|
AuthType UWNetID |
7. Replace the three example UW NetIDs with your own list of UW NetIDs (tadd25, bakera2, vb33 and alexbert are listed in the example). Make sure they are all on the same line, each separated by a space, just as you see above.
8. Save the .htaccess file (in Pico use ^X).
9. You're done! Confirm that password protection is working by opening your Web site with a Web browser.
Updated 7 Dec 2003