|
What's my URL?
Basics of your new web page.
Where can I download WS_FTP for use
at home?
How do I use WS_FTP?
How do I post my web page to the
Linux web server?
How do I post my web page to the
NT web server?
How do I use server side includes?
How do I password protect a web page?
Check out this nifty WS_FTP
tutorial from FTP Planet. The only other thing you'll
need to know is the specific host name information for
the Evergeen Servers.
Linux Server (Grace) = grace.evergreen.edu
NT Server (Coyote) = academic.evergreen.edu
FTP Planet offers a free version:
WS_FTP
LE
:
Set Host Name to grace.evergreen.edu
Set User ID to your Linux login name
Set Password to your Linux password
(what is my Linux username and
password?)
Note: you must create a folder in your
home directory named web
Create an index.html file to be the main page of your
site and place in your web directory. The Apache Web
server will automatically look in this folder for this
file when viewers request your home page
Of course there are many ways
to do this. Here are some ways we've seen it done:
Use an FTP client
just as if you were connecting remotely.
Use a secure shell
such as Putty to transfer files. Tutorial on how to
do this is in the works!
Set Host Name to academic.evergreen.edu
Set User
ID to your NT login name
Set Password
to your NT password
note: if
you have an older account located in users2
- 6 you will need to enter the directory information
as these folders are unbrowsable. This for example would
be: /users3
Locally via Network
File Shares for Windows:
In order to edit web files from your PC running
Windows, you will want to create a shortcut on the desktop
to your folders on the web server. The first step in
this process is to navigate to the web server using
your network neighborhood as follows:
Double-click on your Network Nieghborhood
icon.
Double-click on the Entire Network icon in the Network
Neighborhood Window
Double-click on the Microsoft Windows Network icon.
Double-click on the Puget icon. Double-click on the
server Coyote.
Having found Evergreens Web Server, the next thing to
do is navigate using the file window, to the directory
containing your web space. For example, if the web page
were located at http://www.evergreen.edu/g/godart16,
you would need to navigate to the g directory.
Next, create a shortcut to the folder on your desktop
using the following instructions.
While simultaneously holding down
both the Ctrl and Shift keys on your computer, drag
your web folder onto the desktop.
A small menu will appear listing a few choices. Select
the Create Shortcut option.
You should now see a shortcut on your desktop to your
web folders. Files may be dragged onto this folder at
any time to publish data to that location. Alternatively
users may want to map a network drive to the web server
to allow direct saves to this location.
On Grace the Linux Apache Web Server:
http://grace.evergreen.edu/~username
On Coyote the NT IIS Web Server:
http://academic.evergreen.edu/x/username
where x = the first letter of your login and usename
is your NT login
Grace, the CS web server,
will serve pages out of the web directory of your LINUX
account. So to begin creating a web page accessible
via grace's web server, you should first create this
directory in your own home directory using the following
command:
mkdir ~username/web
This gives you webspace at http://grace.evergreen.edu/~username
Here, username should be replaced with
your login name. Once this directory is created, any
html files that are created should be able to be accessed.
The first file you create should be the
default for the web directory. Do either:
index.html - If you want your default
home page to be a normal html file.
index.shtml - If you want your default home page to
use server side includes
If you're unsure of which to use, just
use index.html.
Here is an example of a simple web page:
<html>
<head>
<title>My first web page</title>
<body background="http://grace.evergreen.edu/graphics/wpaper.gif">
<h3>My first web page</h3>
<a href="http://grace.evergreen.edu">ACC
home page</a>
</body>
</html>
Try pasting that into a text editor,
save it as index.html and put it into your new web directory
In order to improve processing efficiency,
the grace is not configured to scan every html document
that it serves. In order to use a server side include
you will need to make sure that the web page is named
with a .shtml extension.
Listed below is some example code that
uses server side includes. Throughout this example we
have replaced references to your login name with mylogin.
<HTML>
<HEAD>
<TITLE>Test Web Page</TITLE>
<html>
<body>
<H1>Test page</H1>
<!-- This calls a counter script as the page loads
-->
<!--#include virtual="/cgi-bin/cgiwrap/mylogin/counter"
-->
<BR>
<!-- This is a link to another script not run immediately
-->
<A HREF = /cgi-bin/cgiwrap/grays/test1>test1</A>
<BR>
<!-- This calls a script to display the time inline
-->
<!--#include virtual="/cgi-bin/cgiwrap/mylogin/clock"
-->
<BR>
<!-- This Inline include displays the REMOTE HOST
variable -->
Your client host is:
<!--#echo var="REMOTE_HOST" -->
<BR>
<HR>
<!-- I think you can guess what this might do -->
<U>Last modified</U>: <!--#echo var="LAST_MODIFIED"
-->
In some situations you might want to create
a section directly containing web pages that only certain
people get to see. Users would be required to specify
a password and user name that you defined for that area
of the web page. First create a .htpassword file using
the htpassword command with all the logins you plan
to use for your web page.
Telnet to grace and type the following
command:
htpasswd -c .htpasswd username
The argument username should be replaced by the user
name that you want users to login. The optional argurment
"-c" is used the first time to create a new
.htpasswd file. The program will prompt you to enter
the corresponding encrypted password for the user engine.
Once the password file has been created,
in each directory you would like to restrict access
to, you must create a .htaccess file indicating the
access restrictions. The following example file would
restrict access to only the users specified in the .htpassword
file created using the above command line:
AuthType Basic
AuthName My Secret Page
AuthUserFile /usr/users3/login/.htpasswd
AuthGroupFile /usr/users3/login/.htgroup
require valid-user
In the above example, login would be replaced
with your login name, and "users3" would only
be correct if that's where your home directory is located.
|