1:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
   2:<HTML>
   3:  <HEAD>
   4:    <TITLE>Mark Crocker's Apache 1.3.12 Web Server Installation</TITLE>
   5:    <LINK REL="SHORTCUT ICON" HREF="/favicon.ico">
   6:    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
   7:    <META NAME="resource-type" CONTENT="document">
   8:    <META NAME="author" CONTENT="Mark Crocker &lt;mcrocker@speakeasy.com&gt;">
   9:    <META NAME="description" CONTENT="Mark Crocker's Apache Web Server Installation front page">
  10:  </HEAD>
  11:  <BODY>
  12:
  13:    <H1 ALIGN="CENTER">Mark Crocker's Apache 1.3.12 Web Server Information Page</H1>
  14:
  15:    <P><img alt="new 2001-Aug-22 00:46" title="New 2005-Nov-30 21:53:10 EST (Wednesday)" src="/images/new1.gif" align="middle">
  16:    Pretty much everything below is wrong.  I've moved my site to a new server,
  17:    but I'm moving to a new place soon, so I won't be able to update this for a
  18:    few weeks.  Sorry for the mis-information.</P>
  19:
  20:    <P>The web server that runs this site is an
  21:    <A HREF="http://httpd.apache.org/">Apache HTTP Server</A> with a
  22:    <A HREF="http://jakarta.apache.org/tomcat/">Jakarta Tomcat</A> Java Servlet
  23:    Container running on an
  24:    <a href="http://www.software.ibm.com/os/warp/">OS/2 Warp 4 machine</a>.</P>
  25:
  26:    <P>The Apache
  27:      <A HREF="manual/index.html">documentation</A>
  28:      is available from this web site.
  29:    </P>
  30:
  31:    <h2>So What Can it Do?</h2>
  32:
  33:    <P>Well, there's all sorts of things that this web server can do....</P>
  34:
  35:    <h3><a name="servlets">Java Servlets</A></h3>
  36:
  37:    <P>I have had
  38:      <A HREF="http://jakarta.apache.org/tomcat/index.html">Jakarta-tomcat</A>
  39:      working as a stand alone server for quite some time, but I've finally
  40:      got it to work as an add-on to Apache thanks to an OS/2 programmer,
  41:
  42:      <A HREF="mailto:eu@uland.com">Eugen Kuleshov &lt;eu@uland.com&gt;</A>
  43:
  44:      who has ported
  45:
  46:      <A HREF="http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html">mod_jk</A>
  47:
  48:      to OS/2.  It is under testing on this server.  At this moment it is
  49:      still in the default configuration.  I hope to change that soon and
  50:      get some of the "grayed" out stuff below working again.</P>
  51:
  52:    <P>The standard tomcat examples are available from:</P>
  53:
  54:    <UL>
  55:      <li><A HREF="jsp-examples/">JSP Examples</A></li>
  56:      <li><A HREF="servlets-examples/">Servlet Examples</A></LI>
  57:    </UL>
  58:
  59:    <P>Now I have a WebMacro
  60:       Wiki running on this server too.  The Wiki itself is a Servlet
  61:       application that uses the WebMacro template engine for page generation.
  62:       See <!-- A HREF="SavaJe/servlet/wiki/" --><font color="#999999">SavaJe</font> Wiki<!-- /A --> for more information.</P>
  63:
  64:    <h3><a name="inf-HTML">inf-HTML</A></h3>
  65:
  66:    <P>inf-HTML provides access to OS/2 .inf files via the inf-html CGI
  67:       package.  OS/2 uses a different format of help files than Windows or
  68:       UNIX.  These are much more versatile than either, but require a
  69:       special viewer.  While there is a
  70:
  71:       <!-- A HREF="ftp://markcrocker.speakeasy.com/OS2/view.exe" --> <FONT COLOR="#808080">viewer available for Windows</FONT><!-- /A -->,
  72:
  73:       it doesn't implement the complete capabilities of the OS/2 version.
  74:       Another way to get access to these files from a Non-OS/2 machine is
  75:       to use inf-HTML.  This is a
  76:
  77:       <A HREF="http://www.instantweb.com/foldoc/foldoc.cgi?Common+Gateway+Interface">CGI</A>
  78:
  79:       based program the decodes .inf files and re-encodes them into HTML
  80:       on the fly.  Here are some examples of what it can do:
  81:    </P>
  82:
  83:    <UL>
  84:      <LI> <!-- A HREF="/cgi-bin/readinf.cmd?e:/Communications/apache/infhtm9b/inf-html.INF+toc" --><font color="#999999">Inf-HTML</font><!-- /A --> documentation.</LI>
  85:      <LI> <!-- A HREF="/cgi-bin/readinf.cmd?C:/OS2/BOOK/CMDREF.INF+toc" --><font color="#999999">OS/2 Command Reference</font><!-- /A -->.</LI>
  86:      <LI> <!-- A HREF="/cgi-bin/readinf.cmd?C:/OS2/BOOK/REXX.INF+toc" --><font color="#999999">OS/2 Procedures Language 2/REXX</font><!-- /A --> documentation.</LI>
  87:      <LI> <A HREF="/rexxtipsntricks/rxtt28.1.toc.html">REXX Tips and Tricks -- converted to files</A>.</LI>
  88:    </UL>
  89:
  90:    <H3><a name="SSI"></A><A HREF="http://www.instantweb.com/foldoc/foldoc.cgi?server-side+include">SSI</A>
  91:       (Server Side Includes)</H3>
  92:
  93:    <P>Server side includes, using Apache's
  94:
  95:       <A HREF="/manual/mod/mod_include.html">mod_include</A>
  96:
  97:       module, are working just fine now.  Most documents that end in
  98:      .shtml are parsed by the server.  In addition, the default page for
  99:      a directory, is still index.html, but if there isn't one, it will
 100:      look for index.shtml as the alternate default.  At first, I was just
 101:      using this for creating the &quot;Last Updated&quot; date that you
 102:      see in the footer of this and other documents.</P>
 103:
 104:    <P>Now, I'm also using this to generate a different banner image in
 105:       the footer based on the time that the page was accessed.  Check out
 106:       the source code for this page and the footer page:</P>
 107:
 108:    <UL>
 109:      <LI> <A HREF="server.shtml.html">server.shtml</A> - This page (Look at line <A HREF="server.shtml.html#150">150</A>-1 to see the SSI).</LI>
 110:      <LI> <A HREF="footer.shtml.html">footer.shtml</A> - The footer for this page (note that there are <STRONG>two</STRONG> timefmt statements).</LI>
 111:    </UL>
 112:
 113:
 114:    <P>Since this is working, I've been able to convert my bookmarks to
 115:       an SSI script instead of a CGI script.  Consequently the URL for my
 116:       bookmarks has changed (see link above).</P>
 117:
 118:
 119:    <H3><a name="CGI">CGI</A> (<STRONG>C</STRONG>ommon <STRONG>G</STRONG>ateway <STRONG>I</STRONG>nterface)</H3>
 120:
 121:    <P>CGI is nothing new with web browsers.  I have all sorts of CGI
 122:       scripts available on this server.  What's new, though, is a CGI
 123:       script that randomly selects the &quot;Best Viewed With Any
 124:       Browser&quot; logo that appears in the footer.  Try reloading this
 125:       web page and note that there's a different image each time.  Cool
 126:       huh?  The source for this is available from
 127:       <A HREF="http://www.interhack.net/projects/rotbanner/">http://www.interhack.net/projects/rotbanner/</A>
 128:    </P>
 129:
 130:    <P>The problem is that this doesn't work with animated images.  For
 131:       some reason, the web image gets re-loaded each time the animation
 132:       runs it's course.  Consequently, it would hit the server several
 133:       times.  My solution was to use SSI to select the image based on the
 134:       time that you requested this web page.  As an additional benefit,
 135:       this is much less resource intensive than CGI.  See the source
 136:       listings provided in the SSI section above.</P>
 137:
 138:    <H3><A NAME="OTHER">Other</A> goodies in the works</H3>
 139:
 140:    <P>This server also supports SSL, mSQL and PHP3, but I haven't set
 141:       all of that up yet.  The only one, I've verified is SSL.  Have a
 142:       look at: <!-- A HREF="https://markcrocker.speakeasy.com/index.html" -->
 143:       <FONT COLOR="#C0C0C0">Secure Test Page</FONT><!-- /A --> </P>
 144:
 145:    <A HREF="http://validator.w3.org/check/referer"><img border=0
 146:       src="http://validator.w3.org/images/vh40"
 147:       title="[Button: Validate Web Page against W3C HTML 4.0 specification]"
 148:       alt="Valid HTML 4.0!" height=31 width=88></A>
 149:
 150:<!--#set var="sourcefile" value="$SCRIPT_NAME" -->
 151:<!--#include virtual="/footer.shtml" -->
 152:
 153:
 154:  </BODY>
 155:</HTML>